bug#22185: Operation not permitted for `touch -d` on 777 file

2015-12-16 Thread Paul Eggert
Silvio Ricardo Cordeiro wrote: If other users have full control over the file (and surrounding directory), shouldn't they be able to change its date? Mode 777 does not mean full control; it merely means read, write, and execute access is granted to everybody. Other users still cannot chmod

bug#22185: Operation not permitted for `touch -d` on 777 file

2015-12-16 Thread Assaf Gordon
tag 22185 notabug close 22185 stop Additional information: On 12/16/2015 01:19 PM, Assaf Gordon wrote: Hello, On 12/16/2015 09:39 AM, Silvio Ricardo Cordeiro wrote: The following code fails whenever the specified date is different from `now`: <...> I see no description of that in the

bug#22185: Operation not permitted for `touch -d` on 777 file

2015-12-16 Thread Assaf Gordon
Hello, On 12/16/2015 09:39 AM, Silvio Ricardo Cordeiro wrote: The following code fails whenever the specified date is different from `now`: $ mkdir testdir; chmod 777 testdir; cd testdir $ touch file; chmod 777 file $ su another_user $ touch -d 'now' file # works $ touch -d 'yesterday' file

bug#22185: Operation not permitted for `touch -d` on 777 file

2015-12-16 Thread Silvio Ricardo Cordeiro
The following code fails whenever the specified date is different from `now`: $ mkdir testdir; chmod 777 testdir; cd testdir $ touch file; chmod 777 file $ su another_user $ touch -d 'now' file # works $ touch -d 'yesterday' file # fails touch: setting times of ‘file’: Operation not permitted