Module Name:    src
Committed By:   christos
Date:           Sat Jul 10 21:42:30 UTC 2010

Modified Files:
        src/external/bsd/cron/dist: entry.c

Log Message:
PR bin/43591: Jeremy Reed: make sure that the default path is always set.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/cron/dist/entry.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/cron/dist/entry.c
diff -u src/external/bsd/cron/dist/entry.c:1.2 src/external/bsd/cron/dist/entry.c:1.3
--- src/external/bsd/cron/dist/entry.c:1.2	Thu May  6 14:53:17 2010
+++ src/external/bsd/cron/dist/entry.c	Sat Jul 10 17:42:29 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: entry.c,v 1.2 2010/05/06 18:53:17 christos Exp $	*/
+/*	$NetBSD: entry.c,v 1.3 2010/07/10 21:42:29 christos Exp $	*/
 
 /*
  * Copyright 1988,1990,1993,1994 by Paul Vixie
@@ -26,7 +26,7 @@
 #if 0
 static char rcsid[] = "Id: entry.c,v 1.17 2004/01/23 18:56:42 vixie Exp";
 #else
-__RCSID("$NetBSD: entry.c,v 1.2 2010/05/06 18:53:17 christos Exp $");
+__RCSID("$NetBSD: entry.c,v 1.3 2010/07/10 21:42:29 christos Exp $");
 #endif
 #endif
 
@@ -305,7 +305,6 @@
 		} else
 			log_it("CRON", getpid(), "error", "can't set HOME");
 	}
-#ifndef LOGIN_CAP
 	/* If login.conf is in used we will get the default PATH later. */
 	if (!env_get("PATH", e->envp)) {
 		if (glue_strings(envstr, sizeof envstr, "PATH",
@@ -318,7 +317,6 @@
 		} else
 			log_it("CRON", getpid(), "error", "can't set PATH");
 	}
-#endif /* LOGIN_CAP */
 	if (glue_strings(envstr, sizeof envstr, "LOGNAME",
 			 pw->pw_name, '=')) {
 		if ((tenvp = env_set(e->envp, envstr)) == NULL) {

Reply via email to