aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-03-07 17:36:33 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-03-07 17:36:33 +0000
commit4acf011e3556517bf6c73fefab0073abefc05df0 (patch)
tree9d5076c6ed3ef514f658a341c496584c54ae9db8 /rcfile_y.y
parent3667f45fd338f4e1708c01f476e2705253199478 (diff)
downloadfetchmail-4acf011e3556517bf6c73fefab0073abefc05df0.tar.gz
fetchmail-4acf011e3556517bf6c73fefab0073abefc05df0.tar.bz2
fetchmail-4acf011e3556517bf6c73fefab0073abefc05df0.zip
GETEUID check.
svn path=/trunk/; revision=2398
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 7935ba17..793426fc 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -397,7 +397,11 @@ int prc_filecheck(const char *pathname, const flag securecheck)
return(PS_AUTHFAIL);
}
+#ifdef HAVE_GETEUID
+ if (statbuf.st_uid != geteuid())
+#else
if (statbuf.st_uid != getuid())
+#endif /* HAVE_GETEUID */
{
fprintf(stderr, "File %s must be owned by you.\n", pathname);
return(PS_AUTHFAIL);