This is not true for Tandem NonStop Kernel. See Joachim Schmitz's
comment in <http://bugs.gnu.org/10305#111>.
* gnulib.modules: Add root-uid.
* src/extract.c: Include <root-uid.h>.
(extr_init): Don't assume root is uid 0.
quotearg
readlinkat
renameat
+root-uid
rpmatch
safe-read
savedir
#include <quotearg.h>
#include <errno.h>
#include <priv-set.h>
+#include <root-uid.h>
#include <utimens.h>
#include "common.h"
void
extr_init (void)
{
- we_are_root = geteuid () == 0;
+ we_are_root = geteuid () == ROOT_UID;
same_permissions_option += we_are_root;
same_owner_option += we_are_root;