Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/su Revert to previous, less offensive, error message...



details:   https://anonhg.NetBSD.org/src/rev/d54e51896906
branches:  trunk
changeset: 508954:d54e51896906
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Apr 23 06:52:22 2001 +0000

description:
Revert to previous, less offensive, error message when a malloc fails.

diffstat:

 usr.bin/su/su.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d6355cdfb980 -r d54e51896906 usr.bin/su/su.c
--- a/usr.bin/su/su.c   Mon Apr 23 06:10:09 2001 +0000
+++ b/usr.bin/su/su.c   Mon Apr 23 06:52:22 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: su.c,v 1.47 2001/02/19 23:03:52 cgd Exp $      */
+/*     $NetBSD: su.c,v 1.48 2001/04/23 06:52:22 simonb Exp $   */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)su.c       8.3 (Berkeley) 4/2/94";*/
 #else
-__RCSID("$NetBSD: su.c,v 1.47 2001/02/19 23:03:52 cgd Exp $");
+__RCSID("$NetBSD: su.c,v 1.48 2001/04/23 06:52:22 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -331,7 +331,7 @@
                        p = getenv("TERM");
                        /* Create an empty environment */
                        if ((environ = malloc(sizeof(char *))) == NULL)
-                               err(1, "fuck");
+                               err(1, NULL);
                        environ[0] = NULL;
 #ifdef LOGIN_CAP
                        if (setusercontext(lc, pwd, pwd->pw_uid, LOGIN_SETPATH))



Home | Main Index | Thread Index | Old Index