#include <sys/stat.h>
#include <unistd.h>
+#include "root-uid.h"
+
#include "pty-private.h"
/* For security reasons, we try to minimize the dependencies on libraries
{
uid_t euid = geteuid ();
- if (argc == 1 && euid == 0)
+ if (argc == 1 && euid == ROOT_UID)
{
/* Normal invocation of this program is with no arguments and
with privileges. */
}
/* Check if we are properly installed. */
- if (euid != 0)
+ if (euid != ROOT_UID)
{
fprintf (stderr, "pt_chown: needs to be installed setuid 'root'\n");
return FAIL_EXEC;