mv, rm: adapt to new and improved gnulib interfaces
commit6249eb0596dfe50e1f959c4121e3c2515216cc60
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Wed, 29 Apr 2009 07:48:15 +0000 (29 03:48 -0400)
committerJim Meyering <meyering@redhat.com>
Sun, 3 May 2009 17:12:16 +0000 (3 19:12 +0200)
tree7078b6cede5902abdbdbd88f1bad4e6982a84062
parent181615b22a16eba3590cd747692af2432721b703
mv, rm: adapt to new and improved gnulib interfaces

Use gnulib's new priv-set module and updated write-any-file.
With them, the remove-called can_write_any_file function no
longer tries to drop the unlink-directory privilege, so now
each caller of remove must do that separately, calling
priv_set_remove_linkdir.
* bootstrap.conf (gnulib_modules): Add priv-set.
* src/rm.c: Include "priv-set.h".
(main): Call priv_set_remove_linkdir.
* src/mv.c (main): Likewise.
* gnulib: Update submodule to latest.
bootstrap.conf
gnulib
src/mv.c
src/rm.c