diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-22 23:03:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-22 23:03:57 +0000 |
commit | a4113145e51435242d4294945cac5291a5ca8a8e (patch) | |
tree | e9487136e57db0935fcaaa6118edbfe8280c44dd /usr.bin | |
parent | c372b835cf9134279f02499f49e0474fd30422fd (diff) |
%u for uid
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/su/su.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index a550aec9e15..cc02c406ec9 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -1,4 +1,4 @@ -/* $OpenBSD: su.c,v 1.25 1997/06/21 12:18:05 deraadt Exp $ */ +/* $OpenBSD: su.c,v 1.26 1997/06/22 23:03:10 deraadt Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)su.c 5.26 (Berkeley) 7/6/91";*/ -static char rcsid[] = "$OpenBSD: su.c,v 1.25 1997/06/21 12:18:05 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: su.c,v 1.26 1997/06/22 23:03:10 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -343,7 +343,7 @@ kerberos(username, user, uid) (void)fprintf(stderr, "kerberos su: not in %s's ACL.\n", user); return (1); } - (void)snprintf(krbtkfile, sizeof(krbtkfile), "%s_%s_%d", TKT_ROOT, + (void)snprintf(krbtkfile, sizeof(krbtkfile), "%s_%s_%u", TKT_ROOT, user, getuid()); (void)setenv("KRBTKFILE", krbtkfile, 1); |