Module Name: src
Committed By: pooka
Date: Fri Apr 3 07:26:07 UTC 2009
Modified Files:
src/sbin/mount_nfs: mount_nfs.c
Log Message:
Fix bug I introduced in rev 1.64: don't use stack space after
return. pointed out by yamt.
To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sbin/mount_nfs/mount_nfs.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_nfs/mount_nfs.c
diff -u src/sbin/mount_nfs/mount_nfs.c:1.66 src/sbin/mount_nfs/mount_nfs.c:1.67
--- src/sbin/mount_nfs/mount_nfs.c:1.66 Fri Feb 20 15:37:22 2009
+++ src/sbin/mount_nfs/mount_nfs.c Fri Apr 3 07:26:07 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: mount_nfs.c,v 1.66 2009/02/20 15:37:22 yamt Exp $ */
+/* $NetBSD: mount_nfs.c,v 1.67 2009/04/03 07:26:07 pooka Exp $ */
/*
* Copyright (c) 1992, 1993, 1994
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: mount_nfs.c,v 1.66 2009/02/20 15:37:22 yamt Exp $");
+__RCSID("$NetBSD: mount_nfs.c,v 1.67 2009/04/03 07:26:07 pooka Exp $");
#endif
#endif /* not lint */
@@ -187,7 +187,7 @@
void
mount_nfs_dogetargs(struct nfs_args *nfsargsp, int mntflags, const char *spec)
{
- struct sockaddr_storage sa;
+ static struct sockaddr_storage sa;
char *tspec;
if ((mntflags & MNT_GETARGS) != 0) {