Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/su Fix gcc48 build. No obvious reason why nobody els...
details: https://anonhg.NetBSD.org/src/rev/f61344803160
branches: trunk
changeset: 794484:f61344803160
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Mar 16 01:07:46 2014 +0000
description:
Fix gcc48 build. No obvious reason why nobody else has hit this...
diffstat:
usr.bin/su/su.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r ae8f29d87490 -r f61344803160 usr.bin/su/su.c
--- a/usr.bin/su/su.c Sun Mar 16 00:33:13 2014 +0000
+++ b/usr.bin/su/su.c Sun Mar 16 01:07:46 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: su.c,v 1.70 2012/04/12 15:35:07 christos Exp $ */
+/* $NetBSD: su.c,v 1.71 2014/03/16 01:07:46 dholland Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)su.c 8.3 (Berkeley) 4/2/94";*/
#else
-__RCSID("$NetBSD: su.c,v 1.70 2012/04/12 15:35:07 christos Exp $");
+__RCSID("$NetBSD: su.c,v 1.71 2014/03/16 01:07:46 dholland Exp $");
#endif
#endif /* not lint */
@@ -112,7 +112,10 @@
enum { UNSET, YES, NO } iscsh = UNSET;
const char *user, *shell, *avshell;
char *username, **np;
- char *userpass, *class;
+#ifdef SU_ROOTAUTH
+ char *userpass;
+#endif
+ char *class;
char shellbuf[MAXPATHLEN], avshellbuf[MAXPATHLEN];
time_t pw_warntime = _PASSWORD_WARNDAYS * SECSPERDAY;
#ifdef LOGIN_CAP
@@ -186,7 +189,9 @@
if (pwd == NULL)
errx(EXIT_FAILURE, "who are you?");
username = estrdup(pwd->pw_name);
+#ifdef SU_ROOTAUTH
userpass = estrdup(pwd->pw_passwd);
+#endif
if (asme) {
if (pwd->pw_shell && *pwd->pw_shell) {
Home |
Main Index |
Thread Index |
Old Index