Source-Changes-HG archive

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

[src/netbsd-8]: src/usr.sbin/mtree Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/6bd5b8400aa0
branches:  netbsd-8
changeset: 446160:6bd5b8400aa0
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Nov 24 23:50:36 2018 +0000

description:
Pull up following revision(s) (requested by sevan in ticket #1103):

        usr.sbin/mtree/create.c: revision 1.76

Adjust test, we only want to return the structure member if the result
is not NULL.

Heads up by Sascha Wildner @ DragonFly BSD.

diffstat:

 usr.sbin/mtree/create.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 53c3127dadab -r 6bd5b8400aa0 usr.sbin/mtree/create.c
--- a/usr.sbin/mtree/create.c   Sat Nov 24 17:13:51 2018 +0000
+++ b/usr.sbin/mtree/create.c   Sat Nov 24 23:50:36 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: create.c,v 1.73 2014/04/24 17:22:41 christos Exp $     */
+/*     $NetBSD: create.c,v 1.73.16.1 2018/11/24 23:50:36 martin Exp $  */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)create.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: create.c,v 1.73 2014/04/24 17:22:41 christos Exp $");
+__RCSID("$NetBSD: create.c,v 1.73.16.1 2018/11/24 23:50:36 martin Exp $");
 #endif
 #endif /* not lint */
 
@@ -117,7 +117,7 @@
        host[sizeof(host) - 1] = '\0';
        if ((user = getlogin()) == NULL) {
                struct passwd *pw;
-               user = (pw = getpwuid(getuid())) == NULL ? pw->pw_name :
+               user = (pw = getpwuid(getuid())) != NULL ? pw->pw_name :
                    "<unknown>";
        }
 



Home | Main Index | Thread Index | Old Index