Module Name: src
Committed By: pooka
Date: Sun Jan 4 22:05:37 UTC 2015
Modified Files:
src/sbin/mount: mount.c
Log Message:
gcc 4.9 produces vfork clobberation warnings for "name" and "buflen".
Since there's no performance reason to use vfork here, just replace it
with fork and be done with warnings once and for all.
To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sbin/mount/mount.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/mount/mount.c
diff -u src/sbin/mount/mount.c:1.99 src/sbin/mount/mount.c:1.100
--- src/sbin/mount/mount.c:1.99 Sat Oct 5 08:06:35 2013
+++ src/sbin/mount/mount.c Sun Jan 4 22:05:37 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: mount.c,v 1.99 2013/10/05 08:06:35 ast Exp $ */
+/* $NetBSD: mount.c,v 1.100 2015/01/04 22:05:37 pooka Exp $ */
/*
* Copyright (c) 1980, 1989, 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
#if 0
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
#else
-__RCSID("$NetBSD: mount.c,v 1.99 2013/10/05 08:06:35 ast Exp $");
+__RCSID("$NetBSD: mount.c,v 1.100 2015/01/04 22:05:37 pooka Exp $");
#endif
#endif /* not lint */
@@ -473,9 +473,9 @@ mountfs(const char *vfstype, const char
warn("Cannot create pipe");
}
- switch (pid = vfork()) {
+ switch (pid = fork()) {
case -1: /* Error. */
- warn("vfork");
+ warn("fork");
if (optbuf)
free(optbuf);
free(argv);