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
0001189 [BusyBox] Other minor always 01-31-07 12:28 02-11-08 08:33
Reporter netvipe View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.3.x
Summary 0001189: runit sv command bug
Description hi,

i've experienced a problem with the runit "sv" utility.
- running sv without args shows the usage()
- running sv with a valid service name shows the status

> # sv klogd
> run: klogd: (pid 727) 2103s

- running sv with any further option produces a failure

> # sv stop -v -w 3 klogd
> fail: -v: cannot change to service directory: No such file or directory
> fail: -w: cannot change to service directory: No such file or directory
> fail: 3: cannot change to service directory: No such file or directory
> fail: stop: cannot change to service directory: No such file or directory
> run: klogd: (pid 727) 2200s

> # sv stop -w 3 klogd
> fail: -w: cannot change to service directory: No such file or directory
> fail: 3: cannot change to service directory: No such file or directory
> fail: stop: cannot change to service directory: No such file or directory
> run: klogd: (pid 727) 2207s

> # sv stop klogd
> fail: stop: cannot change to service directory: No such file or directory
> run: klogd: (pid 727) 2210s

it seems that argv processing has a problem to identify any kind of options
Additional Information
Attached Files  sv.c [^] (9,046 bytes) 02-01-07 16:59

- Relationships

- Notes
(0002080)
netvipe
01-31-07 12:32

figured out that problem for all versions incl. current svn trunk
 
(0002085)
vda
02-01-07 16:59

Yes it is buggy indeed. Please replace sv.c with attached one, and recompile.
 
(0003944)
vda
02-11-08 08:33

Apparently fixed.
 

- Issue History
Date Modified Username Field Change
01-31-07 12:28 netvipe New Issue
01-31-07 12:28 netvipe Status new => assigned
01-31-07 12:28 netvipe Assigned To  => BusyBox
01-31-07 12:32 netvipe Note Added: 0002080
01-31-07 13:00 netvipe Issue Monitored: netvipe
02-01-07 16:59 vda File Added: sv.c
02-01-07 16:59 vda Note Added: 0002085
02-11-08 08:33 vda Status assigned => closed
02-11-08 08:33 vda Note Added: 0003944
02-11-08 08:33 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker