The below warning about used shell must be printed out. It's part of POSIX at rules.
warning: commands will be executed using /bin/sh
This commit is contained in:
parent
d24e6d0992
commit
bda47c4d32
@ -1,6 +1,6 @@
|
||||
diff -up at-3.1.14/at.c.shell at-3.1.14/at.c
|
||||
--- at-3.1.14/at.c.shell 2013-09-26 16:57:18.126861201 +0200
|
||||
+++ at-3.1.14/at.c 2013-09-26 16:59:24.069127357 +0200
|
||||
--- at-3.1.14/at.c.shell 2014-01-06 17:58:17.555564746 +0100
|
||||
+++ at-3.1.14/at.c 2014-01-06 17:59:17.699720002 +0100
|
||||
@@ -62,11 +62,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -13,7 +13,7 @@ diff -up at-3.1.14/at.c.shell at-3.1.14/at.c
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
@@ -240,6 +237,12 @@ writefile(time_t runtimer, char queue)
|
||||
@@ -239,6 +236,12 @@ writefile(time_t runtimer, char queue)
|
||||
int kill_errno;
|
||||
int rc;
|
||||
int mailsize = 128;
|
||||
@ -26,7 +26,7 @@ diff -up at-3.1.14/at.c.shell at-3.1.14/at.c
|
||||
|
||||
/* Install the signal handler for SIGINT; terminate after removing the
|
||||
* spool file if necessary
|
||||
@@ -450,6 +453,9 @@ writefile(time_t runtimer, char queue)
|
||||
@@ -449,6 +452,9 @@ writefile(time_t runtimer, char queue)
|
||||
fprintf(fp, " || {\n\t echo 'Execution directory "
|
||||
"inaccessible' >&2\n\t exit 1\n}\n");
|
||||
|
||||
@ -36,7 +36,7 @@ diff -up at-3.1.14/at.c.shell at-3.1.14/at.c
|
||||
istty = isatty(fileno(stdin));
|
||||
if (istty) {
|
||||
fprintf(stderr, "at> ");
|
||||
@@ -465,7 +471,7 @@ writefile(time_t runtimer, char queue)
|
||||
@@ -464,7 +470,7 @@ writefile(time_t runtimer, char queue)
|
||||
if (istty) {
|
||||
fprintf(stderr, "<EOT>\n");
|
||||
}
|
||||
@ -45,12 +45,3 @@ diff -up at-3.1.14/at.c.shell at-3.1.14/at.c
|
||||
if (ferror(fp))
|
||||
panic("Output error");
|
||||
|
||||
@@ -915,7 +921,7 @@ main(int argc, char **argv)
|
||||
It also alows 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;
|
||||
|
Loading…
Reference in New Issue
Block a user