diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test.c b/src/test.c index f7b16f27c..41af32c39 100644 --- a/src/test.c +++ b/src/test.c @@ -154,12 +154,12 @@ static int eaccess (char *path, int mode) { struct stat st; - static int euid = -1; + static uid_t euid = -1; if (test_stat (path, &st) < 0) return (-1); - if (euid == -1) + if (euid == (uid_t) -1) euid = geteuid (); if (euid == 0) |