X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Funlinkdir.c;h=9c3ff006552996f10dd9a113d8b76cbd65d70c8a;hb=7f4b1f45ce477f8374d382bd75f5f0a7e865e2c6;hp=12e669e752bfd7c0da80cace0d4a5bac7a2d4543;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/unlinkdir.c b/lib/unlinkdir.c index 12e669e75..9c3ff0065 100644 --- a/lib/unlinkdir.c +++ b/lib/unlinkdir.c @@ -1,6 +1,6 @@ /* unlinkdir.c - determine (and maybe change) whether we can unlink directories - Copyright (C) 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,7 +30,11 @@ /* Return true if we cannot unlink directories, false if we might be able to unlink directories. If possible, tell the kernel we don't - want to be able to unlink directories, so that we can return true. */ + want to be able to unlink directories, so that we can return true. + + Note: this function may modify the process privilege set, to remove + the PRIV_SYS_LINKDIR privilege, so is neither thread-safe, nor + appropriate for use in a library. */ bool cannot_unlink_dir (void)