diff options
author | imp <imp@cvs.openbsd.org> | 2000-02-05 18:47:11 +0000 |
---|---|---|
committer | imp <imp@cvs.openbsd.org> | 2000-02-05 18:47:11 +0000 |
commit | df54ef149e18337b319dde4134176c8a5376a75c (patch) | |
tree | c27acbd803e8a082414f781c4d019e76c804c8e1 /sbin | |
parent | ceeff0869b041497a8661d7a54bb6a449e573c49 (diff) |
Fix uninitialized access introduced by millert. ok millert@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/umount/umount.c | 8 |
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; |