ALT Linux Bugzilla
– Attachment 767 Details for
Bug 5080
/sbin/service incorrectly intercepts command line arguments passed to service
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Proposed change
service.diff (text/plain), 1.24 KB, created by
Dmitry V. Levin
on 2005-03-09 15:46:17 MSK
(
hide
)
Description:
Proposed change
Filename:
MIME Type:
Creator:
Dmitry V. Levin
Created:
2005-03-09 15:46:17 MSK
Size:
1.24 KB
patch
obsolete
>Index: service >=================================================================== >RCS file: /home/cvs/cvsroot/service/service,v >retrieving revision 1.9 >diff -u -p -r1.9 service >--- service 25 Jan 2004 17:44:48 -0000 1.9 >+++ service 9 Mar 2005 12:41:27 -0000 >@@ -40,36 +40,32 @@ if [ $# -eq 0 ]; then > usage 1 > fi > >-while [ $# -gt 0 ]; do >- case "$1" in >- --help|-h) >- usage 0 >- ;; >- --version|-V ) >- echo "$VERSION" >- exit 0 >- ;; >- -*) >- usage 1 >- ;; >- *) >- if [ $# -eq 2 -a "$2" = "--full-restart" ]; then >- SERVICE="$1" >- check_service >- cd / || exit >- "$SERVICEDIR/$SERVICE" stop >- "$SERVICEDIR/$SERVICE" start >- exit $? >- elif [ -z "$SERVICE" ]; then >- SERVICE="$1" >- check_service >- else >- OPTIONS="$OPTIONS $1" >- fi >- shift >- ;; >- esac >-done >+if [ $# -eq 2 -a "$2" = "--full-restart" ]; then >+ SERVICE="$1" >+ check_service >+ cd / || exit >+ "$SERVICEDIR/$SERVICE" stop >+ "$SERVICEDIR/$SERVICE" start >+ exit $? >+fi > >-cd / || exit >-"$SERVICEDIR/$SERVICE" ${OPTIONS} >+case "$1" in >+ --help|-h) >+ usage 0 >+ ;; >+ --version|-V ) >+ echo "$VERSION" >+ exit 0 >+ ;; >+ -*) >+ usage 1 >+ ;; >+ *) >+ SERVICE="$1" >+ shift >+ check_service >+ cd / || exit >+ "$SERVICEDIR/$SERVICE" "$@" >+ exit $? >+ ;; >+esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5080
: 767