mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* spawn.cc (spawn_guts): Check if script is executable.
This commit is contained in:
parent
0d72b1deac
commit
1d4707111a
@ -1,3 +1,7 @@
|
||||
2004-07-07 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* spawn.cc (spawn_guts): Check if script is executable.
|
||||
|
||||
2004-06-30 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* times.cc (hires_ms::usecs): Don't overreact.
|
||||
|
@ -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] != '!')
|
||||
|
Loading…
x
Reference in New Issue
Block a user