← Commit list

850b05fbd

Glenn L McGrath
Glenn L McGrath
2003-12-19
FAILED Duration: 87s

Subject

Fix a bug preventing use of escaped characters that use the signed bit

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 →

libbb/getopt_ulflags.c+2 -3
@@ -60,7 +60,7 @@ const char *bb_opt_complementaly;
typedef struct
{
- char opt;
+ unsigned char opt;
char list_flg;
unsigned long switch_on;
unsigned long switch_off;
@@ -159,10 +159,9 @@ bb_getopt_ulflags (int argc, char **argv, const char *applet_opts, ...)
while ((c = getopt_long (argc, argv, applet_opts,
bb_applet_long_options, NULL)) > 0) {
-
for (on_off = complementaly; on_off->opt != c; on_off++) {
if(!on_off->opt)
- bb_show_usage ();
+ bb_show_usage ();
}
if(flags & on_off->incongruously)
flags |= 0x80000000UL;