* 2.5.8 pre3 chown problem
@ 2002-04-14 19:38 Leopold Gouverneur
2002-04-15 7:33 ` Duncan Sands
0 siblings, 1 reply; 2+ messages in thread
From: Leopold Gouverneur @ 2002-04-14 19:38 UTC (permalink / raw)
To: linux-kernel
I tried 2.5.8 pre3 and exim stopped working!
I found the problem was that logrotate is unable to change
exim's mainlog owner from root to mail. So i made a little test:
gouv:~# touch junk
gouv:~# ls -l junk
-rw-r--r-- 1 root root 0 avr 14 21:30 junk
gouv:~# chown mail.adm junk
gouv:~# echo $?
0
gouv:~# ls -l junk
-rw-r--r-- 1 root adm 0 avr 14 21:30 junk
gouv:~# chown --version
chown (fileutils) 4.1
Écrit par David MacKenzie.
gouv:~# bash --version
GNU bash, version 2.05a.0(1)-release (i386-pc-linux-gnu)
Copyright 2001 Free Software Foundation, Inc.
file system is ext 2
I reverted to 2.5.7 and everyting worked as expected
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.5.8 pre3 chown problem
2002-04-14 19:38 2.5.8 pre3 chown problem Leopold Gouverneur
@ 2002-04-15 7:33 ` Duncan Sands
0 siblings, 0 replies; 2+ messages in thread
From: Duncan Sands @ 2002-04-15 7:33 UTC (permalink / raw)
To: Leopold Gouverneur, linux-kernel
Andrew Morton posted this patch earlier:
--- linux-2.5.8-pre3/fs/open.c Tue Apr 9 18:16:40 2002
+++ 25/fs/open.c Thu Apr 11 00:15:09 2002
@@ -524,11 +524,11 @@ static int chown_common(struct dentry *
goto out;
newattrs.ia_valid = ATTR_CTIME;
if (user != (uid_t) -1) {
- newattrs.ia_valid = ATTR_UID;
+ newattrs.ia_valid |= ATTR_UID;
newattrs.ia_uid = user;
}
if (group != (gid_t) -1) {
- newattrs.ia_valid = ATTR_GID;
+ newattrs.ia_valid |= ATTR_GID;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-15 7:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-14 19:38 2.5.8 pre3 chown problem Leopold Gouverneur
2002-04-15 7:33 ` Duncan Sands
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox