summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-04-12 19:04:26 +0000
committerache <ache@FreeBSD.org>1995-04-12 19:04:26 +0000
commit2e4fea754bf2442ab8ae42ed43150768c7646a76 (patch)
tree3e28a434290c39ce4b25fe239fe87920593d8a98 /usr.sbin/cron
parent64adcd35a46aa2f87a8eec022df59807ffd3a521 (diff)
downloadFreeBSD-src-2e4fea754bf2442ab8ae42ed43150768c7646a76.zip
FreeBSD-src-2e4fea754bf2442ab8ae42ed43150768c7646a76.tar.gz
Fix home dir cheating
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r--usr.sbin/cron/lib/entry.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/cron/lib/entry.c b/usr.sbin/cron/lib/entry.c
index 03273a3..d57e2f7 100644
--- a/usr.sbin/cron/lib/entry.c
+++ b/usr.sbin/cron/lib/entry.c
@@ -16,7 +16,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char rcsid[] = "$Id: entry.c,v 2.12 1994/01/17 03:20:37 vixie Exp $";
+static char rcsid[] = "$Id: entry.c,v 1.1.1.1 1994/08/27 13:43:02 jkh Exp $";
#endif
/* vix 26jan87 [RCS'd; rest of log is in RCS file]
@@ -252,10 +252,8 @@ load_entry(file, error_func, pw, envp)
sprintf(envstr, "SHELL=%s", _PATH_BSHELL);
e->envp = env_set(e->envp, envstr);
}
- if (!env_get("HOME", e->envp)) {
- sprintf(envstr, "HOME=%s", pw->pw_dir);
- e->envp = env_set(e->envp, envstr);
- }
+ sprintf(envstr, "HOME=%s", pw->pw_dir);
+ e->envp = env_set(e->envp, envstr);
if (!env_get("PATH", e->envp)) {
sprintf(envstr, "PATH=%s", _PATH_DEFPATH);
e->envp = env_set(e->envp, envstr);
OpenPOWER on IntegriCloud