=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/su/su.c,v retrieving revision 1.41 retrieving revision 1.42 diff -c -r1.41 -r1.42 *** src/usr.bin/su/su.c 2001/09/18 04:41:09 1.41 --- src/usr.bin/su/su.c 2001/09/18 16:37:59 1.42 *************** *** 1,4 **** ! /* $OpenBSD: su.c,v 1.41 2001/09/18 04:41:09 millert Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: su.c,v 1.42 2001/09/18 16:37:59 millert Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. *************** *** 43,49 **** #if 0 static const char sccsid[] = "from: @(#)su.c 5.26 (Berkeley) 7/6/91"; #else ! static const char rcsid[] = "$OpenBSD: su.c,v 1.41 2001/09/18 04:41:09 millert Exp $"; #endif #endif /* not lint */ --- 43,49 ---- #if 0 static const char sccsid[] = "from: @(#)su.c 5.26 (Berkeley) 7/6/91"; #else ! static const char rcsid[] = "$OpenBSD: su.c,v 1.42 2001/09/18 16:37:59 millert Exp $"; #endif #endif /* not lint */ *************** *** 159,165 **** auth_errx(as, 1, "can't allocate memory"); if (asme) { if (pwd->pw_shell && *pwd->pw_shell) { ! shell = strdup(pwd->pw_shell); } else { shell = _PATH_BSHELL; iscsh = NO; --- 159,166 ---- auth_errx(as, 1, "can't allocate memory"); if (asme) { if (pwd->pw_shell && *pwd->pw_shell) { ! if ((shell = strdup(pwd->pw_shell)) == NULL) ! auth_errx(as, 1, "can't allocate memory"); } else { shell = _PATH_BSHELL; iscsh = NO;