cp: utimes: bar: Permission denied

Matthew Dillon dillon at apollo.backplane.com
Wed Apr 1 20:11:10 PDT 2009

:with recent head the following does not work:
:touch foo
:chmod 444 foo
:cp -p foo bar
:I get
:cp: utimes: bar: Permission denied
:Something similar seems to happen during "make dist" in an
:autoconf/automake project.

    Hmm.  Well, the utimes manual page implies that utimes should
    succeed if you own the file, even if you do not have write access.

    I'll have to augment our access checks slightly to fix this.

					Matthew Dillon 
					<dillon at backplane.com>

More information about the Bugs mailing list