execve: Use interp in shebang as is

Fujitsu: POSTK_DEBUG_TEMP_FIX_9
Refs: #995
Change-Id: I09751d13c4fecd68087d47815029c0b65e51f18a
This commit is contained in:
Ken Sato
2018-07-04 14:04:31 +09:00
committed by Masamichi Takagi
parent f1a40a409f
commit b920da5103
7 changed files with 265 additions and 8 deletions

23
test/issues/995/Makefile Normal file
View File

@ -0,0 +1,23 @@
CC = gcc
TARGET=put_args call_execve
all: $(TARGET)
put_args: put_args.c
$(CC) -o $@ $^
call_execve: call_execve.c
$(CC) -o $@ $^
test: all
@ln -nfs ./put_args ./syml_put_args
@echo "#!./syml_put_args" > test_01.sh
@echo "#!`pwd`/syml_put_args" > test_02.sh
@chmod +x ./test_01.sh
@chmod +x ./test_02.sh
@sh ./C995.sh
clean:
rm -f $(TARGET) *.o ./syml_put_args ./test_01.sh ./test_02.sh