artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d593eea
)
tame "stdio"; username information does not use getpw
author
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:06:26 +0000
(14:06 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 7 Oct 2015 14:06:26 +0000
(14:06 +0000)
usr.bin/logname/logname.c
patch
|
blob
|
history
diff --git
a/usr.bin/logname/logname.c
b/usr.bin/logname/logname.c
index
3c87132
..
ab7499c
100644
(file)
--- a/
usr.bin/logname/logname.c
+++ b/
usr.bin/logname/logname.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: logname.c,v 1.
7 2009/10/27 23:59:40
deraadt Exp $ */
+/* $OpenBSD: logname.c,v 1.
8 2015/10/07 14:06:26
deraadt Exp $ */
/* $NetBSD: logname.c,v 1.6 1994/12/22 06:39:32 jtc Exp $ */
/*-
@@
-46,6
+46,9
@@
main(int argc, char *argv[])
setlocale(LC_ALL, "");
+ if (tame("stdio", NULL) == -1)
+ err(1, "tame");
+
while ((ch = getopt(argc, argv, "")) != -1)
switch (ch) {
case '?':