summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/pw_dup.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-13 15:33:48 +0000
committerguenther <guenther@openbsd.org>2015-09-13 15:33:48 +0000
commitf34159915688c12d4e52fc18c24c63ebe318816d (patch)
treec4492477e43c3150235ffed0f88c85752904e1cc /lib/libc/gen/pw_dup.c
parentOvershot w/PROTO_DEPRECATED: seed48_deterministic() is used internally (diff)
downloadwireguard-openbsd-f34159915688c12d4e52fc18c24c63ebe318816d.tar.xz
wireguard-openbsd-f34159915688c12d4e52fc18c24c63ebe318816d.zip
Wrap <pwd.h> so that calls go direct and the symbols are all weak.
Hide bcrypt_autorounds(), prefixing with an underbar for static builds.
Diffstat (limited to 'lib/libc/gen/pw_dup.c')
-rw-r--r--lib/libc/gen/pw_dup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/pw_dup.c b/lib/libc/gen/pw_dup.c
index da7b6b034dd..2484736ef74 100644
--- a/lib/libc/gen/pw_dup.c
+++ b/lib/libc/gen/pw_dup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pw_dup.c,v 1.7 2005/08/08 08:05:34 espie Exp $ */
+/* $OpenBSD: pw_dup.c,v 1.8 2015/09/13 15:33:48 guenther Exp $ */
/*
* Copyright (c) 2000, 2002 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -80,3 +80,4 @@ pw_dup(const struct passwd *pw)
return (newpw);
}
+DEF_WEAK(pw_dup);