Module Name: src Committed By: dholland Date: Sun Jun 26 03:51:28 UTC 2016
Modified Files: src/sbin/umount: umount.c Log Message: Fix previous to avoid using an uninitialized pointer when using -R (raw). To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 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.50 src/sbin/umount/umount.c:1.51 --- src/sbin/umount/umount.c:1.50 Sun Jun 26 03:40:39 2016 +++ src/sbin/umount/umount.c Sun Jun 26 03:51:28 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: umount.c,v 1.50 2016/06/26 03:40:39 dholland Exp $ */ +/* $NetBSD: umount.c,v 1.51 2016/06/26 03:51:28 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.50 2016/06/26 03:40:39 dholland Exp $"); +__RCSID("$NetBSD: umount.c,v 1.51 2016/06/26 03:51:28 dholland Exp $"); #endif #endif /* not lint */ @@ -259,10 +259,9 @@ umountfs(const char *name, const char ** if (!namematch(ai)) return 1; #endif /* ! SMALL */ + snprintf(umountprog, sizeof(umountprog), "umount_%s", type); } - snprintf(umountprog, sizeof(umountprog), "umount_%s", type); - #ifndef SMALL if (verbose) { (void)printf("%s: unmount from %s\n", name, mntpt);