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/ _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils