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

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

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 ? */


-- The SGI Junkie <sgi_junkie@fastmail.fm>

Reply to: