aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/directive.c4
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
@@ -449,7 +449,7 @@ run_check_script (const char *script, struct file_triplet *trp,
if (efd == -1)
_exit (127);
- for (i = getdtablesize (); i > 0; i--)
+ for (i = getdtablesize (); i >= 0; i--)
{
if (i != p[1] && i != efd)
close (i);
@@ -478,7 +478,7 @@ run_check_script (const char *script, struct file_triplet *trp,
chdir (temp_homedir);
- argv[0] = "-sh";
+ argv[0] = "sh";
argv[1] = script_file;
argv[2] = NULL;

Return to:

Send suggestions and report system problems to the System administrator.