Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/umount When SMALL, if realpath() fails, warn() using th...
details: https://anonhg.NetBSD.org/src/rev/13a0c6acdfaf
branches: trunk
changeset: 346103:13a0c6acdfaf
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Jun 26 03:05:52 2016 +0000
description:
When SMALL, if realpath() fails, warn() using the failing path instead
of the buffer realpath has declined to write anything into.
diffstat:
sbin/umount/umount.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5bcf40f75d74 -r 13a0c6acdfaf sbin/umount/umount.c
--- a/sbin/umount/umount.c Sat Jun 25 23:15:41 2016 +0000
+++ b/sbin/umount/umount.c Sun Jun 26 03:05:52 2016 +0000
@@ -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 @@
#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 @@
}
#ifdef SMALL
else {
- warn("%s", rname);
+ warn("%s", name);
return 1;
}
#endif /* SMALL */
Home |
Main Index |
Thread Index |
Old Index