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

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



Manoj Srivastava writes:
> Hi,
> 
> if [ -x /usr/bin/tempfile ] ; then
>    TIMEZONES=$(tempfile)
> else
>    TIMEZONES=/etc/timezone.$$
[cut]
> 	There. That may well be paranoid enough. season to either
>  abort or remove the offending dir/file as you will. The non-tempfile
>  solution is not quite as safe (since a link maybe created ater we
>  test for existence and before we create an empty file, or after we
>  remove and before we create the empty file, but those windows are
>  relatively small.

There's little reason to be paranoid about creating files in /etc. In fact,
it would be better to use just /etc/timezone.(dpkg-)new to defend from
interrupted runs. That will be deleted in next successfull run, whereas $$
versions may clutter the directory forever.

-Topi



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


Reply to: