diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-11-18 16:44:47 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-11-18 16:44:47 +0000 |
commit | 9a5e3891fe3ae38f9b0856f71b9198ca17134a49 (patch) | |
tree | 1c4da69db4abf4ba5b3e52811012665c0fde69b2 /lib/libc/hidden | |
parent | 6cd89b0feb005f6d78b14c2876483fd4ed2f4a39 (diff) |
Add _shadow variants to the two popular getpw functions (uid and nam).
This version of the function will always open the secure/shadow/master
password files. Soon, the regular variants of these functions will not.
(Intermixing shadow and regular gets a little weird; don't do that.)
Not using struct spwd and getspwnam functions to reduce churn in callers.
Should just be a one line diff in most places.
ok deraadt
Diffstat (limited to 'lib/libc/hidden')
-rw-r--r-- | lib/libc/hidden/pwd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/hidden/pwd.h b/lib/libc/hidden/pwd.h index d5302275f6a..52e3ac1e9e0 100644 --- a/lib/libc/hidden/pwd.h +++ b/lib/libc/hidden/pwd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pwd.h,v 1.1 2015/09/13 15:34:22 guenther Exp $ */ +/* $OpenBSD: pwd.h,v 1.2 2015/11/18 16:44:46 tedu Exp $ */ /* * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> * @@ -33,8 +33,10 @@ PROTO_DEPRECATED(endpwent); PROTO_DEPRECATED(getpwent); PROTO_NORMAL(getpwnam); PROTO_NORMAL(getpwnam_r); +PROTO_NORMAL(getpwnam_shadow); PROTO_NORMAL(getpwuid); PROTO_NORMAL(getpwuid_r); +PROTO_NORMAL(getpwuid_shadow); PROTO_NORMAL(pw_dup); PROTO_NORMAL(setpassent); PROTO_DEPRECATED(setpwent); |