Module Name: src
Committed By: mbalmer
Date: Sun Aug 28 08:32:47 UTC 2011
Modified Files:
src/usr.sbin/chroot: chroot.c
Log Message:
Initialize local variables that previously were global (user, group).
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.sbin/chroot/chroot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/chroot/chroot.c
diff -u src/usr.sbin/chroot/chroot.c:1.17 src/usr.sbin/chroot/chroot.c:1.18
--- src/usr.sbin/chroot/chroot.c:1.17 Sat Aug 27 22:32:44 2011
+++ src/usr.sbin/chroot/chroot.c Sun Aug 28 08:32:47 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: chroot.c,v 1.17 2011/08/27 22:32:44 joerg Exp $ */
+/* $NetBSD: chroot.c,v 1.18 2011/08/28 08:32:47 mbalmer Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)chroot.c 8.1 (Berkeley) 6/9/93";
#else
-__RCSID("$NetBSD: chroot.c,v 1.17 2011/08/27 22:32:44 joerg Exp $");
+__RCSID("$NetBSD: chroot.c,v 1.18 2011/08/28 08:32:47 mbalmer Exp $");
#endif
#endif /* not lint */
@@ -72,6 +72,8 @@
uid_t uid;
int ch, gids;
+ user = NULL;
+ group = NULL;
gid = 0;
uid = 0;
while ((ch = getopt(argc, argv, "G:g:u:")) != -1) {