aboutsummaryrefslogtreecommitdiff
path: root/src/directive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/directive.c')
-rw-r--r--src/directive.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/directive.c b/src/directive.c
index 8893675..cb656e7 100644
--- a/src/directive.c
+++ b/src/directive.c
@@ -488,7 +488,12 @@ run_check_script (const char *script, struct file_triplet *trp,
488 setenv ("WYDAWCA_TRIPLET_BASE", trp->name, 1); 488 setenv ("WYDAWCA_TRIPLET_BASE", trp->name, 1);
489 setenv ("WYDAWCA_DIST_FILE", trp->file[file_dist].name, 1); 489 setenv ("WYDAWCA_DIST_FILE", trp->file[file_dist].name, 1);
490 490
491 chdir (temp_homedir); 491 if (chdir (temp_homedir))
492 {
493 logmsg (LOG_CRIT, "cannot change to %s: %s",
494 temp_homedir, strerror (errno));
495 _exit (127);
496 }
492 497
493 argv[0] = "sh"; 498 argv[0] = "sh";
494 argv[1] = script_file; 499 argv[1] = script_file;

Return to:

Send suggestions and report system problems to the System administrator.