Module Name:    src
Committed By:   dholland
Date:           Sun Jun 26 03:05:52 UTC 2016

Modified Files:
        src/sbin/umount: umount.c

Log Message:
When SMALL, if realpath() fails, warn() using the failing path instead
of the buffer realpath has declined to write anything into.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sbin/umount/umount.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/umount/umount.c
diff -u src/sbin/umount/umount.c:1.48 src/sbin/umount/umount.c:1.49
--- src/sbin/umount/umount.c:1.48	Sat Jun 27 08:29:56 2015
+++ src/sbin/umount/umount.c	Sun Jun 26 03:05:52 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: umount.c,v 1.48 2015/06/27 08:29:56 manu Exp $	*/
+/*	$NetBSD: umount.c,v 1.49 2016/06/26 03:05:52 dholland Exp $	*/
 
 /*-
  * Copyright (c) 1980, 1989, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #if 0
 static char sccsid[] = "@(#)umount.c	8.8 (Berkeley) 5/8/95";
 #else
-__RCSID("$NetBSD: umount.c,v 1.48 2015/06/27 08:29:56 manu Exp $");
+__RCSID("$NetBSD: umount.c,v 1.49 2016/06/26 03:05:52 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -204,7 +204,7 @@ umountfs(const char *name, const char **
 		}
 #ifdef SMALL
 		else {
- 			warn("%s", rname);
+ 			warn("%s", name);
  			return 1;
 		}
 #endif /* SMALL */

Reply via email to