From 6dfc81ea910bf3a5aa84583b66fbab857f522df3 Mon Sep 17 00:00:00 2001 From: mmaslano Date: Fri, 17 Aug 2007 15:02:07 +0200 Subject: [PATCH] Allow root's crontab (check with getuid). --- misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc.c b/misc.c index 8281f80..1a4dd97 100644 --- a/misc.c +++ b/misc.c @@ -451,6 +451,8 @@ allowed(const char *username, const char *allow_file, const char *deny_file) { int isallowed; char buf[128]; + if ( getuid() == 0 ) + return TRUE; isallowed = FALSE; if ((fp = fopen(allow_file, "r")) != NULL) { isallowed = in_file(username, fp, FALSE); -- 2.40.0