commit bash-20160819 snapshot

This commit is contained in:
Chet Ramey
2016-08-22 15:48:58 -04:00
parent f8c5768ef2
commit ff0adf8a0a
10 changed files with 53 additions and 13 deletions
+2 -1
View File
@@ -5488,7 +5488,8 @@ shell_execve (command, args, env)
run it for some reason. See why. */
#if defined (HAVE_HASH_BANG_EXEC)
READ_SAMPLE_BUF (command, sample, sample_len);
sample[sample_len - 1] = '\0';
if (sample_len > 0)
sample[sample_len - 1] = '\0';
if (sample_len > 2 && sample[0] == '#' && sample[1] == '!')
{
char *interp;