https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082009-04-02T10:13:35ZDragonFlyBSD bugtrackerDragonFlyBSD - Bug #1327: cp: utimes: bar: Permission deniedhttps://bugs.dragonflybsd.org/issues/1327?journal_id=63642009-04-02T10:13:35Zdillon
<ul></ul><p>:Hi,<br />:<br />:with recent head the following does not work:<br />:<br />:touch foo<br />:chmod 444 foo<br />:cp -p foo bar<br />:<br />:I get<br />:cp: utimes: bar: Permission denied<br />:<br />:Something similar seems to happen during "make dist" in an<br />:autoconf/automake project.<br />:<br />:Cheers,<br />:Johannes</p>
<pre><code>Hmm. Well, the utimes manual page implies that utimes should<br /> succeed if you own the file, even if you do not have write access.</code></pre>
<pre><code>I'll have to augment our access checks slightly to fix this.</code></pre>
<pre><code>-Matt<br /> Matthew Dillon <br /> &lt;<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>&gt;</code></pre> DragonFlyBSD - Bug #1327: cp: utimes: bar: Permission deniedhttps://bugs.dragonflybsd.org/issues/1327?journal_id=63652009-04-02T14:48:54ZJohannes.Hofmann
<ul></ul><p>Fixed with ee89633d5330733056052c06919a5dd4c01347bc</p>
<p>Thanks a lot,<br />Johannes</p>