summaryrefslogtreecommitdiffstats
path: root/abs/core/dcron/dcron-logname.patch
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-07-05 03:10:33 (GMT)
committerCecil <knoppmyth@gmail.com>2011-07-05 03:10:33 (GMT)
commit1ef6179b351e630270855c1442c3432643e6beac (patch)
treeae55fd68f80b80fcf55b143a7e25763bc6c0466b /abs/core/dcron/dcron-logname.patch
parentc456596c1877710fb6190c940a3d259914227bac (diff)
downloadlinhes_pkgbuild-1ef6179b351e630270855c1442c3432643e6beac.zip
linhes_pkgbuild-1ef6179b351e630270855c1442c3432643e6beac.tar.gz
linhes_pkgbuild-1ef6179b351e630270855c1442c3432643e6beac.tar.bz2
dcron:Bumped to latest.
Diffstat (limited to 'abs/core/dcron/dcron-logname.patch')
-rw-r--r--abs/core/dcron/dcron-logname.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/abs/core/dcron/dcron-logname.patch b/abs/core/dcron/dcron-logname.patch
new file mode 100644
index 0000000..c37c5f4
--- /dev/null
+++ b/abs/core/dcron/dcron-logname.patch
@@ -0,0 +1,25 @@
+diff -aur dcron-4.4/chuser.c dcron-4.4.logname/chuser.c
+--- dcron-4.4/chuser.c 2010-02-15 11:18:13.111967483 +0100
++++ dcron-4.4.logname/chuser.c 2010-02-15 11:18:29.615531204 +0100
+@@ -25,6 +25,7 @@
+ return(-1);
+ }
+ setenv("USER", pas->pw_name, 1);
++ setenv("LOGNAME", pas->pw_name, 1);
+ setenv("HOME", pas->pw_dir, 1);
+ setenv("SHELL", "/bin/sh", 1);
+
+diff -aur dcron-4.4/crontab.1 dcron-4.4.logname/crontab.1
+--- dcron-4.4/crontab.1 2010-02-15 11:18:13.111967483 +0100
++++ dcron-4.4.logname/crontab.1 2010-02-15 11:19:48.295707950 +0100
+@@ -57,8 +57,8 @@
+ .PP
+ Nor does it do any special environment handling.
+ A shell script is better-suited to doing that than a cron daemon.
+-This cron daemon sets up only three environment variables: USER,
+-HOME, and SHELL.
++This cron daemon sets up only four environment variables: USER,
++LOGNAME, HOME, and SHELL.
+ .PP
+ Our crontab format is roughly similar to that used by vixiecron.
+ Individual fields may contain a time, a time range, a time range