Paul Eggert <address@hidden> wrote:
> address@hidden (Albert Chin-A-Young) writes:
>
>> + shred --remove --exact a b
>> shred: .: fdatasync failed: Bad file number
>
> Thanks for reporting that problem. Does the following patch fix it?
>
> 2004-05-29 Paul Eggert <address@hidden>
>
> * src/shred.c (dosync): Ignore EBADF errors, as IRIX 6.5
> fdatasync reports EBADF when syncing (unwritable) directories.
> Problem reported by Albert Chin-A-Young in:
>http://lists.gnu.org/archive/html/bug-coreutils/2004-05/msg00165.html
Thanks to both of you.
I've applied Paul's patch.