diff options
-rw-r--r-- | utils/ChangeLog | 6 | ||||
-rw-r--r-- | utils/login.c | 5 | ||||
-rw-r--r-- | utils/su.c | 6 |
3 files changed, 10 insertions, 7 deletions
diff --git a/utils/ChangeLog b/utils/ChangeLog index fe4436ff..0b51a82c 100644 --- a/utils/ChangeLog +++ b/utils/ChangeLog @@ -1,3 +1,9 @@ +Wed Jul 31 14:24:05 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> + + * login.c (main/verify_passwd): Declare crypt weak in a portable + way. + * su.c (check_password): Likewise. + Tue Jul 30 14:49:48 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * login.c (main/verify_passwd): If government is broken, don't use diff --git a/utils/login.c b/utils/login.c index 726d7d16..7c8ae6ea 100644 --- a/utils/login.c +++ b/utils/login.c @@ -359,8 +359,6 @@ dog (time_t timeout, pid_t pid, char **argv) } } -asm (".weak crypt"); - void main(int argc, char *argv[]) { @@ -515,7 +513,8 @@ main(int argc, char *argv[]) void verify_passwd (const char *name, const char *password, uid_t id, int is_group) { - extern char *crypt (const char *string, const char salt[2]); + extern char *crypt (const char *string, const char salt[2]) + __attribute__ ((weak)); char *prompt, *unencrypted, *encrypted; if (!password || !*password @@ -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; |