[bug-gnulib] Re: new unlinkdir module for gnulib

2005-05-20 Thread Bruno Haible
Paul Eggert wrote: > It has other uses, too. For example, tar uses it to efficiently > remove non-directories while leaving directories alone. OK, I withdraw the criticism. Nice code-sharing. Bruno ___ bug-gnulib mailing list bug-gnulib@gnu.org http

[bug-gnulib] Re: new unlinkdir module for gnulib

2005-05-20 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Reading the comments in > http://savannah.gnu.org/cgi-bin/viewcvs/coreutils/coreutils/src/remove.c?rev=1.126&content-type=text/vnd.viewcvs-markup > it seems that the only use of this function is to speed up the removal of > a non-empty directory. It has

[bug-gnulib] Re: new unlinkdir module for gnulib

2005-05-20 Thread Jim Meyering
Bruno Haible <[EMAIL PROTECTED]> wrote: ... > Why not add to gnulib a module with a function rmdir_recursive() instead? > This function would remove a directory, including its contents. coreutils' remove.c might fit the bill, in that it's robust. But currently it's not strictly library-clean in th

[bug-gnulib] Re: new unlinkdir module for gnulib

2005-05-20 Thread Bruno Haible
Paul Eggert wrote: > I installed this, imported from coreutils. It addresses the issue > that `unlink ("directory")' works on some hosts (e.g., Solaris, > OpenBSD) but not others (e.g., GNU/Linux, FreeBSD). Solaris 10 has a > new wrinkle: you can add/remove the privilege of unlinking a > director