summaryrefslogtreecommitdiff
path: root/sbin/umount/umount.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/umount/umount.c')
-rw-r--r--sbin/umount/umount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c
index 968afb0afb3..9e21e6087fc 100644
--- a/sbin/umount/umount.c
+++ b/sbin/umount/umount.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umount.c,v 1.8 2000/01/30 02:05:05 millert Exp $ */
+/* $OpenBSD: umount.c,v 1.9 2000/02/05 18:47:10 imp Exp $ */
/* $NetBSD: umount.c,v 1.16 1996/05/11 14:13:55 mycroft Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)umount.c 8.3 (Berkeley) 2/20/94";
#else
-static char rcsid[] = "$OpenBSD: umount.c,v 1.8 2000/01/30 02:05:05 millert Exp $";
+static char rcsid[] = "$OpenBSD: umount.c,v 1.9 2000/02/05 18:47:10 imp Exp $";
#endif
#endif /* not lint */
@@ -178,8 +178,8 @@ umountfs(oname)
char *delimp, *hostp, *mntpt;
char *name, *newname, rname[MAXPATHLEN], type[MFSNAMELEN];
- if (realpath(name, rname) == NULL) {
- warn("%s", rname);
+ if (realpath(oname, rname) == NULL) {
+ warn("%s", oname);
return (1);
}
mntpt = name = rname;