artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08ac133
)
fail when an argument is given on 'id -R'
author
op
<op@openbsd.org>
Tue, 30 May 2023 16:44:16 +0000
(16:44 +0000)
committer
op
<op@openbsd.org>
Tue, 30 May 2023 16:44:16 +0000
(16:44 +0000)
from Lucas (lucas [at] sexy [dot] is).
ok millert@
usr.bin/id/id.c
patch
|
blob
|
history
diff --git
a/usr.bin/id/id.c
b/usr.bin/id/id.c
index
30e2c58
..
bb1ebc0
100644
(file)
--- a/
usr.bin/id/id.c
+++ b/
usr.bin/id/id.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: id.c,v 1.
29 2022/12/04 23:50:48 cheloha Exp $
*/
+/* $OpenBSD: id.c,v 1.
30 2023/05/30 16:44:16 op Exp $
*/
/*-
* Copyright (c) 1991, 1993
@@
-128,6
+128,8
@@
main(int argc, char *argv[])
usage();
if (Rflag) {
+ if (argc != 0)
+ usage();
printf("%d\n", getrtable());
exit(0);
}