diff options
author | Matheus Izvekov <mizvekov@gmail.com> | 2010-01-19 23:44:15 +0300 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-20 04:46:39 +0300 |
commit | 2e5fa4a69d49646d928041ebd20bbe659b6d8260 (patch) | |
tree | 8bca34f34b254878bde2dea8ec906551903623b0 /editors | |
parent | 94a6fd1eeb185f8fea5c0906553552fb2a8aa8d0 (diff) |
patch: ignore flag -g. +22 bytes
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r-- | editors/patch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/patch.c b/editors/patch.c index 580ee147c..ab3af3ce7 100644 --- a/editors/patch.c +++ b/editors/patch.c @@ -85,9 +85,11 @@ int patch_main(int argc UNUSED_PARAM, char **argv) { const char *p = "-1"; const char *i = "-"; /* compat */ + const char *g; /* unimplemented, default is "0" */ #if ENABLE_LONG_OPTS static const char patch_longopts[] ALIGN1 = "strip\0" Required_argument "p" + "get\0" Required_argument "g" "input\0" Required_argument "i" "reverse\0" No_argument "R" "forward\0" No_argument "N" @@ -95,7 +97,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv) ; applet_long_options = patch_longopts; #endif - opt = getopt32(argv, "p:i:RN", &p, &i); + opt = getopt32(argv, "p:i:RNg:", &p, &i, &g); if (opt & OPT_R) plus = '-'; patch_level = xatoi(p); /* can be negative! */ |