diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-01-02 22:50:45 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-01-02 22:50:45 +0200 |
commit | 663969c2cd1abc4a0681b2a02f7a8bf76dbe7da9 (patch) | |
tree | bc246be401da9aa3846b5b2821d4fc82fd0740a5 /src | |
parent | e113d685f81852992a08b5dabab93dd97f0fee59 (diff) | |
download | wydawca-663969c2cd1abc4a0681b2a02f7a8bf76dbe7da9.tar.gz wydawca-663969c2cd1abc4a0681b2a02f7a8bf76dbe7da9.tar.bz2 |
Bugfixes.
* src/directive.c (run_check_script): Close stdin.
Call shell as "sh".
Diffstat (limited to 'src')
-rw-r--r-- | src/directive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directive.c b/src/directive.c index 3d70fa8..401397d 100644 --- a/src/directive.c +++ b/src/directive.c @@ -451,3 +451,3 @@ run_check_script (const char *script, struct file_triplet *trp, - for (i = getdtablesize (); i > 0; i--) + for (i = getdtablesize (); i >= 0; i--) { @@ -480,3 +480,3 @@ run_check_script (const char *script, struct file_triplet *trp, - argv[0] = "-sh"; + argv[0] = "sh"; argv[1] = script_file; |