← Commit list

2e5fa4a69

Matheus Izvekov
Matheus Izvekov
2010-01-20
FAILED Duration: 27s

Subject

patch: ignore flag -g. +22 bytes

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/patch.c+3 -1
@@ -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! */