Bug 144634 - daemon() mishandles command argument as calling runuser
Summary: daemon() mishandles command argument as calling runuser
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
: 144843 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-01-10 05:11 UTC by Kazuyuki Maejima
Modified: 2014-03-17 02:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-01-10 21:12:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kazuyuki Maejima 2005-01-10 05:11:40 UTC
Description of problem:

iiim service would not start, leaving the following message:

runuser: invalid option -- r
Try `runuser --help' for more information.

Version-Release number of selected component (if applicable):

8.02-1

How reproducible:

Always

Steps to Reproduce:

Run /sbin/service iiim start (or restart when lock file remains)
  
Actual results:

IIIMF input server would not start.

Expected results:

IIIMF input server starts.

Additional info:

Tracing iiim initscript by `sh -x', I found runuser
called with oddly quoted arguments.  Apparently
-c option only took '"/usr/sbin/htt', and -retryonerr
was another runuser option, which caused the error.

+ runuser -s /bin/bash - htt -c '"/usr/sbin/htt' -retryonerror '0"'

Deleting backslashes from the runuser command line in
/etc/rc.d/init.d/functions solves this problem.

           $nice runuser -s /bin/bash - $user -c "$*"

After the above chage, arguments are quoted appropriately.

+ runuser -s /bin/bash - htt -c '/usr/sbin/htt -retryonerror 0'

Comment 1 Bill Nottingham 2005-01-10 21:12:54 UTC
Thanks, will be fixed in the next build.

Comment 2 Bill Nottingham 2005-01-11 22:27:10 UTC
*** Bug 144843 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.