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

Re: IRIX NFS returns EEXIST, not ENOTEMPTY on rmdir tmp.ci



On 2008-02-19 07:31 +0100, SGI Junkie wrote:

> This has been an issue for probably a decade:
>
> In src/help.c, in ensure_pathname_nonexisting(), there is a test for a
> non-empty directory:
>
> if (errno != ENOTEMPTY) { /* Huh ? */
>
> Well, the IRIX nfs server returns EEXIST in such situations, and then dpkg
> fails misearbly.  This prevents using IRIX machines as nfs root servers.
>
> The line below fixes it:
>
> if (errno != ENOTEMPTY && errno != EEXIST) { /* Huh ? */

This was already fixed in dpkg 1.14.16:

,----
| dpkg (1.14.16) unstable; urgency=low
| 
|   [ Guillem Jover ]
|   [...]
|   * Additionally check if errno is EEXIST after rmdir(2), as SUSv3 specifies
|     that on non-empty directories it can either return that or ENOTEMPTY.
`----

Cheers,
       Sven


Reply to: