bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: GNU tar patch for 1.13.19 (EPERM bug)


From: Paul Eggert
Subject: Re: GNU tar patch for 1.13.19 (EPERM bug)
Date: Mon, 6 May 2002 21:27:40 -0700 (PDT)

> From: Jason Kim <address@hidden>
> Date: Mon, 6 May 2002 22:10:34 -0400 (EDT)
> 
> +     [EISDIR is the Linux standard unlink() of a dir, but it should be 
> EPERM])

Thanks.  Actually, POSIX is wrong and Linux is right.  An effort is
being made to fix this at the POSIX level.  See, for example:

http://www.opengroup.org/sophocles/show_mail.tpl?source=L&listname=austin-group-l&id=3736
http://www.opengroup.org/sophocles/show_mail.tpl?source=L&listname=austin-group-l&id=3738
http://www.opengroup.org/sophocles/show_mail.tpl?source=L&listname=austin-group-l&id=3740

That will take time, though, and there's no guarantee that POSIX will
get fixed.  In the meantime, I'm simply going to change:

> !       if (errno != EPERM)

to:

> !       if (errno != EPERM && errno != EISDIR)

since there's no reliable way to detect the compatibility problem at
'configure'-time.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]