summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-09-25 01:51:30 +0000
committerMiles Bader <miles@gnu.org>1996-09-25 01:51:30 +0000
commit129e29aef70af0eb60d65a9b3711b79bffce2677 (patch)
tree2aed54c610e5f861522be98c99a79eec5ed56bc2 /utils
parentd26a4ac514a043047ec82fd380b1ac7909d586aa (diff)
(main:verify_passwd):
Only declare reference to crypt weak if HAVE_CRYPT isn't defined.
Diffstat (limited to 'utils')
-rw-r--r--utils/login.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/login.c b/utils/login.c
index 53d27ed0..e4d1f628 100644
--- a/utils/login.c
+++ b/utils/login.c
@@ -517,7 +517,9 @@ main(int argc, char *argv[])
uid_t id, int is_group)
{
extern char *crypt (const char *string, const char salt[2]);
+#ifndef HAVE_CRYPT
#pragma weak crypt
+#endif
char *prompt, *unencrypted, *encrypted;
if (!password || !*password