[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#20241: Timezones should depend on debian-utils



Miquel van Smoorenburg wrote:
> Well I'm not one for a living but it is one of my hobbies. This thread is
> long enough as it is but I just can't resist. /bin/sh is a Posix shell,
> so why not simply use:
> 
> set -C
> : > /tmp/tempfile.$$ || exit 1
> set +C
> 
> set -C causes a Posix shell to open files with O_EXCL

I investigated that :-) Doesn't work.  Bash, at least, only refrains
from clobbering _regular_ files, and will still happily write to
devices and such.  (Try making link from the tempfile to /dev/null and
watch the strace. No O_EXCL).

Richard Braakman


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: