From: Marcela Mašláňová Date: Tue, 23 Mar 2010 15:33:12 +0000 (+0100) Subject: Revert previous change. The code which control the input entry X-Git-Tag: cronie1.4.5~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23886b4999edc22180635726a4b4f07afbc07c87;p=cronie Revert previous change. The code which control the input entry should be sufficient. Only "/" are removed from scripts. --- diff --git a/src/security.c b/src/security.c index 348504a..c3b1463 100644 --- a/src/security.c +++ b/src/security.c @@ -218,11 +218,8 @@ int cron_change_user_permanently(struct passwd *pw, char *homedir) { return -1; } if (chdir(homedir) == -1) { - if (setenv(homedir, "/", 0) == -1) { - log_it("CRON", getpid(), "ERROR chdir failed", homedir, errno); - return -1; - } - chdir("/"); + log_it("CRON", getpid(), "ERROR chdir failed", homedir, errno); + return -1; } return 0;