/* Determine whether we can write any file.
- Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2013 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
#include "write-any-file.h"
#include "priv-set.h"
+#include "root-uid.h"
#include <unistd.h>
can = (priv_set_ismember (PRIV_FILE_DAC_WRITE) == 1);
#else
/* In traditional Unix, only root can unlink directories. */
- can = (geteuid () == 0);
+ can = (geteuid () == ROOT_UID);
#endif
can_write = can;
initialized = true;