Project

General

Profile

Actions

Bug #1327

closed

cp: utimes: bar: Permission denied

Added by Johannes.Hofmann about 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hi,

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.

Cheers,
Johannes

PS: Sorry for my lousy attempts on irc....

Actions #1

Updated by dillon about 15 years ago

:Hi,
:
: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.
:
:Cheers,
:Johannes

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.
-Matt
Matthew Dillon
<>
Actions #2

Updated by Johannes.Hofmann about 15 years ago

Fixed with ee89633d5330733056052c06919a5dd4c01347bc

Thanks a lot,
Johannes

Actions

Also available in: Atom PDF