ash: fix a bug in standalone mode (corrupted getopt() state)

This commit is contained in:
Denis Vlasenko
2008-10-20 07:52:33 +00:00
parent 802a7be54f
commit d1660cb9ad
5 changed files with 43 additions and 33 deletions

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1,6 @@
# In this test, rm is NOFORK and it modifies getopt internal state
rm -f non_existent_file
# Subsequent hexdump is run as NOEXEC, and thus still uses this state
hexdump </dev/null
# Did hexdump segfault etc?
echo $?