aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-12-19 10:13:10 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-12-19 10:13:10 +0000
commita7b52f8d29a49e3b93e63020416f51363365a612 (patch)
tree0fa1bae60686d1ad8522e003442385f8ccaf8483
parentfbc6c27a527575dc2477ddda738c8126881a86d5 (diff)
downloadbusybox-w32-a7b52f8d29a49e3b93e63020416f51363365a612.tar.gz
busybox-w32-a7b52f8d29a49e3b93e63020416f51363365a612.tar.bz2
busybox-w32-a7b52f8d29a49e3b93e63020416f51363365a612.zip
Fix a bug preventing use of escaped characters that use the signed bit
git-svn-id: svn://busybox.net/trunk/busybox@8119 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--libbb/getopt_ulflags.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c
index 04d1e669f..371fdab26 100644
--- a/libbb/getopt_ulflags.c
+++ b/libbb/getopt_ulflags.c
@@ -60,7 +60,7 @@ const char *bb_opt_complementaly;
60 60
61typedef struct 61typedef struct
62{ 62{
63 char opt; 63 unsigned char opt;
64 char list_flg; 64 char list_flg;
65 unsigned long switch_on; 65 unsigned long switch_on;
66 unsigned long switch_off; 66 unsigned long switch_off;
@@ -159,10 +159,9 @@ bb_getopt_ulflags (int argc, char **argv, const char *applet_opts, ...)
159 159
160 while ((c = getopt_long (argc, argv, applet_opts, 160 while ((c = getopt_long (argc, argv, applet_opts,
161 bb_applet_long_options, NULL)) > 0) { 161 bb_applet_long_options, NULL)) > 0) {
162
163 for (on_off = complementaly; on_off->opt != c; on_off++) { 162 for (on_off = complementaly; on_off->opt != c; on_off++) {
164 if(!on_off->opt) 163 if(!on_off->opt)
165 bb_show_usage (); 164 bb_show_usage ();
166 } 165 }
167 if(flags & on_off->incongruously) 166 if(flags & on_off->incongruously)
168 flags |= 0x80000000UL; 167 flags |= 0x80000000UL;