[BusyBox-cvs] busybox/coreutils chown.c,1.23,1.24
Glenn McGrath
bug1 at busybox.net
Mon Sep 8 14:34:28 UTC 2003
Update of /var/cvs/busybox/coreutils
In directory winder:/tmp/cvs-serv3583/coreutils
Modified Files:
chown.c
Log Message:
Preserve suid/sgid bits
Index: chown.c
===================================================================
RCS file: /var/cvs/busybox/coreutils/chown.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- chown.c 22 Jul 2003 08:56:42 -0000 1.23
+++ chown.c 8 Sep 2003 14:34:23 -0000 1.24
@@ -43,6 +43,7 @@
static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
{
if (chown_func(fileName, uid, (gid == -1) ? statbuf->st_gid : gid) == 0) {
+ chmod(fileName, statbuf->st_mode);
return (TRUE);
}
bb_perror_msg("%s", fileName); /* Avoid multibyte problems. */
More information about the busybox-cvs
mailing list