diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-05 06:43:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-05 06:43:32 +0000 |
commit | 25dbdbc912fbf2e18ca192636e4b695fb7dba231 (patch) | |
tree | 1c7374d087272a336774051affab752e1ade3d82 /usr.bin | |
parent | 9c62762356e7e61efc2e3e57ebfb89bba316d08b (diff) |
tame "stdio getpw" right at the top; this runs the whole gamut of
getpw/gr type functions allowed in that set.
ok doug
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/id/id.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c index 59152954bb4..e6b3d20ae8b 100644 --- a/usr.bin/id/id.c +++ b/usr.bin/id/id.c @@ -1,4 +1,4 @@ -/* $OpenBSD: id.c,v 1.24 2015/10/05 06:30:37 deraadt Exp $ */ +/* $OpenBSD: id.c,v 1.25 2015/10/05 06:43:31 deraadt Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -58,6 +58,9 @@ main(int argc, char *argv[]) gid_t gid; const char *opts; + if (tame("stdio getpw", NULL) == -1) + err(1, "tame"); + cflag = Gflag = gflag = nflag = pflag = rflag = uflag = 0; if (strcmp(getprogname(), "groups") == 0) { |