08c5811143
Tue Dec 09 2003 Jens Petersen <petersen@redhat.com> - 3.1.8-49 - replace at-3.1.8-SHELL-91233.patch by at-3.1.8-SHELL-111386.patch which now executes $SHELL directly in the at shell script after all the variables have been setup with /bin/sh (#91233) [suggested by Göran Uddeborg] - this changelog is now in utf-8 Fri Nov 07 2003 Jens Petersen <petersen@redhat.com> - 3.1.8-48 - add at-3.1.8-pie.patch to build atd as pie (#108415) [Ulrich Drepper] Fri Oct 31 2003 Dan Walsh <dwalsh@redhat.com> - 3.1.8-47.sel Fri Jun 20 2003 Jens Petersen <petersen@redhat.com> - 3.1.8-46 - add at-3.1.8-atrun.8-typo-97697.patch to fix typo in atrun.8 (#97697) - update at.1 description of shell behaviour (#91233)
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
diff -u at-3.1.8/at.c.SHELL at-3.1.8/at.c
|
|
--- at-3.1.8/at.c.SHELL 2003-12-09 17:03:28.000000000 +1000
|
|
+++ at-3.1.8/at.c 2003-12-09 17:03:28.000000000 +1000
|
|
@@ -433,6 +433,8 @@
|
|
fprintf(fp, " || {\n\t echo 'Execution directory "
|
|
"inaccessible' >&2\n\t exit 1\n}\n");
|
|
|
|
+ fprintf(fp, "${SHELL:-/bin/sh} << `(dd if=/dev/urandom count=200 bs=1 2>/dev/null|LC_ALL=C tr -d -c '[:alnum:]')`\n\n");
|
|
+
|
|
istty = isatty(fileno(stdin));
|
|
if (istty) {
|
|
fprintf(stderr, "at> ");
|
|
@@ -854,10 +856,11 @@
|
|
/* POSIX.2 allows the shell specified by the user's SHELL environment
|
|
variable, the login shell from the user's password database entry,
|
|
or /bin/sh to be the command interpreter that processes the at-job.
|
|
- It also alows a warning diagnostic to be printed. Because of the
|
|
+ It also allows a warning diagnostic to be printed. Because of the
|
|
possible variance, we always output the diagnostic. */
|
|
|
|
- fprintf(stderr, "warning: commands will be executed using /bin/sh\n");
|
|
+/* fprintf(stderr, "warning: commands will be executed using /bin/sh\n");
|
|
+ */
|
|
|
|
writefile(timer, queue);
|
|
break;
|