* spawn.cc (spawn_guts): Check if script is executable.

This commit is contained in:
Corinna Vinschen
2004-07-08 09:18:29 +00:00
parent 0d72b1deac
commit 1d4707111a
2 changed files with 11 additions and 0 deletions

View File

@ -469,6 +469,13 @@ spawn_guts (const char * prog_arg, const char *const *argv,
debug_printf ("%s is a script", (char *) real_path);
if (real_path.has_acls () && allow_ntsec
&& check_file_access (real_path, X_OK))
{
debug_printf ("... but not executable");
break;
}
char *pgm, *arg1;
if (buf[0] != '#' || buf[1] != '!')