Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/cron/dist PR bin/43591: Jeremy Reed: make sure ...
details: https://anonhg.NetBSD.org/src/rev/e883e9a330b1
branches: trunk
changeset: 756288:e883e9a330b1
user: christos <christos%NetBSD.org@localhost>
date: Sat Jul 10 21:42:29 2010 +0000
description:
PR bin/43591: Jeremy Reed: make sure that the default path is always set.
diffstat:
external/bsd/cron/dist/entry.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 5eef9d0b79b4 -r e883e9a330b1 external/bsd/cron/dist/entry.c
--- a/external/bsd/cron/dist/entry.c Sat Jul 10 21:31:00 2010 +0000
+++ b/external/bsd/cron/dist/entry.c Sat Jul 10 21:42:29 2010 +0000
@@ -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) {
Home |
Main Index |
Thread Index |
Old Index