summaryrefslogtreecommitdiff
path: root/utils/su.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/su.c')
-rw-r--r--utils/su.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/su.c b/utils/su.c
index 32ae99a7..0be75235 100644
--- a/utils/su.c
+++ b/utils/su.c
@@ -451,13 +451,11 @@ apply_auth_to_pgrp (struct auth *auth, pid_t pgrp)
string PASSWORD, 0 if not. Return 1 without asking for a password if
run by uid 0 or if PASSWORD is an empty password, and always under -r.
Always prints a message before returning 0. */
-
-asm (".weak crypt");
-
int
check_password (const char *name, const char *password)
{
- extern char *crypt (const char *string, const char salt[2]);
+ extern char *crypt (const char *string, const char salt[2])
+ __attribute__ ((weak));
char *unencrypted, *encrypted;
static char *prompt = NULL;