* spawn.cc (spawn_guts): Check if script is executable.
This commit is contained in:
		| @@ -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> | 2004-06-30  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* times.cc (hires_ms::usecs): Don't overreact. | 	* 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); |       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; |       char *pgm, *arg1; | ||||||
|  |  | ||||||
|       if (buf[0] != '#' || buf[1] != '!') |       if (buf[0] != '#' || buf[1] != '!') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user