BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001166 [udhcp] minor always 01-18-07 18:23 02-12-08 12:53
Reporter ganadist View Status public  
Assigned To
Priority normal Resolution no change required  
Status closed  
Summary 0001166: udhcpc can't run script
Description When run udhcpc, it can register script by "-s" option for setting ethernet.

But I found udhcpc can't run script.

At function udhcp_run_script() in networking/udhcp/script.c, it tried to execle to run script. but execle system-call can't run shell script directly.

Additional Information I made patch that run shell to interprete script. I'll attach it.
Attached Files  udhcp-script.diff [^] (778 bytes) 01-18-07 18:23

- Relationships

- Notes
(0004284)
vda
02-12-08 12:53

User error.

script MUST BE an executable. Just adding .sh to the name is not enough, you need to chmod +x the script. After that, exec will work.
 

- Issue History
Date Modified Username Field Change
01-18-07 18:23 ganadist New Issue
01-18-07 18:23 ganadist File Added: udhcp-script.diff
02-12-08 12:53 vda Status new => closed
02-12-08 12:53 vda Note Added: 0004284
02-12-08 12:53 vda Resolution open => no change required


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker