bug-coreutils
[Top][All Lists]
Advanced

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

[bug #21999] rm fails completely on systems that don't have dirfd()


From: Alan Hourihane
Subject: [bug #21999] rm fails completely on systems that don't have dirfd()
Date: Thu, 10 Jan 2008 23:57:46 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.11) Gecko/20080103 Firefox/2.0.0.11

Follow-up Comment #5, bug #21999 (project coreutils):

Just checked other programs, and ls.c deals with dirfd() returning -1 and
falls back to using an alternative.

It seems to me that remove.c doesn't check the return status of dirfd() ever
failing and tries to do bad things...

For example, remove.c does this...

AD_push (dirfd (dirp), ds, dir, dir_st);

and then later it would try to fstat the file descriptor returned by dirfd()
being -1 gets bogus results.

Anyway, not to worry. I'll fix libc and implement dirfd() instead.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21999>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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