Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/chroot Initialize local variables that previously w...
details: https://anonhg.NetBSD.org/src/rev/2ea20c7acf7c
branches: trunk
changeset: 768870:2ea20c7acf7c
user: mbalmer <mbalmer%NetBSD.org@localhost>
date: Sun Aug 28 08:32:47 2011 +0000
description:
Initialize local variables that previously were global (user, group).
diffstat:
usr.sbin/chroot/chroot.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 3ea6ddf0d59f -r 2ea20c7acf7c usr.sbin/chroot/chroot.c
--- a/usr.sbin/chroot/chroot.c Sun Aug 28 08:27:57 2011 +0000
+++ b/usr.sbin/chroot/chroot.c Sun Aug 28 08:32:47 2011 +0000
@@ -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) {
Home |
Main Index |
Thread Index |
Old Index