Bug 669

Summary: hush's exec applet mishandles empty strings ""
Product: Busybox Reporter: Mike Frysinger <vapier>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: enhancement CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Mike Frysinger 2009-10-18 05:19:17 UTC
while fixing `` and $() seemed to be easy (hopefully i put the check at the right place), the exec "" crash seems to be a nested issue

builtin_exec() uses pseudo_exec_argv(), but the functions this one relies on seems to eat empty strings.  for example:
exec ""
exec ls ""

hush segfaults on the first one while the second one it interprets as:
exec ls
Comment 1 Denys Vlasenko 2009-10-18 09:44:47 UTC
Please try current git. It should have it fixed.
Comment 2 Mike Frysinger 2009-10-18 17:55:13 UTC
yep, thanks