diff options
author | vodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-14 09:56:52 +0000 |
---|---|---|
committer | vodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-10-14 09:56:52 +0000 |
commit | 01624413c323108075899977a28fc904b2af0ff3 (patch) | |
tree | 06f15d778a64ba361219d8227f87422173bf0da8 /coreutils/id.c | |
parent | 846218fbf12a4870648037175fe7cdf286501569 (diff) | |
download | busybox-w32-01624413c323108075899977a28fc904b2af0ff3.tar.gz busybox-w32-01624413c323108075899977a28fc904b2af0ff3.tar.bz2 busybox-w32-01624413c323108075899977a28fc904b2af0ff3.zip |
- new bb_opt_complementally syntax, use [-:?] only - 'free' chars
- new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets
- use bb_default_error_retval for env applet
git-svn-id: svn://busybox.net/trunk/busybox@11859 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/id.c')
-rw-r--r-- | coreutils/id.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/coreutils/id.c b/coreutils/id.c index 14497b416..39a57c196 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -62,12 +62,9 @@ extern int id_main(int argc, char **argv) | |||
62 | short status; | 62 | short status; |
63 | 63 | ||
64 | /* Don't allow -n -r -nr -ug -rug -nug -rnug */ | 64 | /* Don't allow -n -r -nr -ug -rug -nug -rnug */ |
65 | bb_opt_complementally = "?u~g:g~u:r?ug:n?ug"; | ||
66 | flags = bb_getopt_ulflags(argc, argv, "rnug"); | ||
67 | |||
68 | /* Don't allow more than one username */ | 65 | /* Don't allow more than one username */ |
69 | if (argc > (optind + 1)) | 66 | bb_opt_complementally = "?1:?:u--g:g--u:r?ug:n?ug"; |
70 | bb_show_usage(); | 67 | flags = bb_getopt_ulflags(argc, argv, "rnug"); |
71 | 68 | ||
72 | /* This values could be overwritten later */ | 69 | /* This values could be overwritten later */ |
73 | uid = geteuid(); | 70 | uid = geteuid(); |