aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/cut.c2
-rw-r--r--coreutils/date.c2
-rw-r--r--coreutils/id.c2
-rw-r--r--coreutils/install.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c
index d26e80eee..e5fb5aff7 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -300,7 +300,7 @@ extern int cut_main(int argc, char **argv)
300 part = opt & (OPT_BYTE_FLGS|OPT_CHAR_FLGS|OPT_FIELDS_FLGS); 300 part = opt & (OPT_BYTE_FLGS|OPT_CHAR_FLGS|OPT_FIELDS_FLGS);
301 if(part == 0) 301 if(part == 0)
302 bb_error_msg_and_die("you must specify a list of bytes, characters, or fields"); 302 bb_error_msg_and_die("you must specify a list of bytes, characters, or fields");
303 if(opt & 0x80000000UL) 303 if(opt & BB_GETOPT_ERROR)
304 bb_error_msg_and_die("only one type of list may be specified"); 304 bb_error_msg_and_die("only one type of list may be specified");
305 parse_lists(sopt); 305 parse_lists(sopt);
306 if((opt & (OPT_DELIM_FLGS))) { 306 if((opt & (OPT_DELIM_FLGS))) {
diff --git a/coreutils/date.c b/coreutils/date.c
index 3608df69f..513aadeec 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -166,7 +166,7 @@ int date_main(int argc, char **argv)
166 bb_error_msg_and_die(bb_msg_memory_exhausted); 166 bb_error_msg_and_die(bb_msg_memory_exhausted);
167 } 167 }
168 use_arg = opt & DATE_OPT_DATE; 168 use_arg = opt & DATE_OPT_DATE;
169 if(opt & 0x80000000UL) 169 if(opt & BB_GETOPT_ERROR)
170 bb_show_usage(); 170 bb_show_usage();
171#ifdef CONFIG_FEATURE_DATE_ISOFMT 171#ifdef CONFIG_FEATURE_DATE_ISOFMT
172 if(opt & DATE_OPT_TIMESPEC) { 172 if(opt & DATE_OPT_TIMESPEC) {
diff --git a/coreutils/id.c b/coreutils/id.c
index 541c3d16b..636049168 100644
--- a/coreutils/id.c
+++ b/coreutils/id.c
@@ -64,7 +64,7 @@ extern int id_main(int argc, char **argv)
64 bb_opt_complementaly = "u~g:g~u"; 64 bb_opt_complementaly = "u~g:g~u";
65 flags = bb_getopt_ulflags(argc, argv, "rnug"); 65 flags = bb_getopt_ulflags(argc, argv, "rnug");
66 66
67 if ((flags & 0x80000000UL) 67 if ((flags & BB_GETOPT_ERROR)
68 /* Don't allow -n -r -nr */ 68 /* Don't allow -n -r -nr */
69 || (flags <= 3 && flags > 0) 69 || (flags <= 3 && flags > 0)
70 /* Don't allow more than one username */ 70 /* Don't allow more than one username */
diff --git a/coreutils/install.c b/coreutils/install.c
index 36dc1d618..345e75af0 100644
--- a/coreutils/install.c
+++ b/coreutils/install.c
@@ -69,7 +69,7 @@ extern int install_main(int argc, char **argv)
69 flags = bb_getopt_ulflags(argc, argv, "cdpsg:m:o:", &gid_str, &mode_str, &uid_str); /* 'a' must be 2nd */ 69 flags = bb_getopt_ulflags(argc, argv, "cdpsg:m:o:", &gid_str, &mode_str, &uid_str); /* 'a' must be 2nd */
70 70
71 /* Check valid options were given */ 71 /* Check valid options were given */
72 if(flags & 0x80000000UL) { 72 if(flags & BB_GETOPT_ERROR) {
73 bb_show_usage(); 73 bb_show_usage();
74 } 74 }
75 75