Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/chown The id chgrp command is required to change is not...
details: https://anonhg.NetBSD.org/src/rev/d84f855920f6
branches: trunk
changeset: 782259:d84f855920f6
user: enami <enami%NetBSD.org@localhost>
date: Wed Oct 24 01:12:51 2012 +0000
description:
The id chgrp command is required to change is not uid but gid.
diffstat:
sbin/chown/chown.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r cde0013ecfe6 -r d84f855920f6 sbin/chown/chown.c
--- a/sbin/chown/chown.c Wed Oct 24 00:30:52 2012 +0000
+++ b/sbin/chown/chown.c Wed Oct 24 01:12:51 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chown.c,v 1.7 2012/10/23 17:55:46 christos Exp $ */
+/* $NetBSD: chown.c,v 1.8 2012/10/24 01:12:51 enami Exp $ */
/*
* Copyright (c) 1988, 1993, 1994, 2003
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94";
#else
-__RCSID("$NetBSD: chown.c,v 1.7 2012/10/23 17:55:46 christos Exp $");
+__RCSID("$NetBSD: chown.c,v 1.8 2012/10/24 01:12:51 enami Exp $");
#endif
#endif /* not lint */
@@ -181,9 +181,9 @@
if (stat(reference, &st) == -1)
err(EXIT_FAILURE, "Cannot stat `%s'", reference);
- uid = st.st_uid;
if (ischown)
- gid = st.st_gid;
+ uid = st.st_uid;
+ gid = st.st_gid;
}
if ((ftsp = fts_open(argv, fts_options, NULL)) == NULL)
Home |
Main Index |
Thread Index |
Old Index