Bugzilla – Attachment 2206 Details for
Bug 2059
Treat RETVAL as an integer in contrib/redhat/sshd.init
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use integer tests on RETVAL
redhat-init.diff (text/plain), 1.08 KB, created by
Iain Morgan
on 2013-01-08 06:55:11 AEDT
(
hide
)
Description:
Use integer tests on RETVAL
Filename:
MIME Type:
Creator:
Iain Morgan
Created:
2013-01-08 06:55:11 AEDT
Size:
1.08 KB
patch
obsolete
>Index: contrib/redhat/sshd.init >=================================================================== >RCS file: /cvs/openssh/contrib/redhat/sshd.init,v >retrieving revision 1.14 >diff -u -r1.14 sshd.init >--- contrib/redhat/sshd.init 6 Sep 2011 23:15:04 -0000 1.14 >+++ contrib/redhat/sshd.init 5 Jan 2013 00:45:09 -0000 >@@ -29,7 +29,7 @@ > { > $SSHD -t > RETVAL=$? >- if [ ! "$RETVAL" = 0 ]; then >+ if [ $RETVAL -ne 0 ]; then > failure $"Configuration file or keys are invalid" > echo > fi >@@ -49,7 +49,7 @@ > echo -n $"Starting $prog:" > $SSHD $OPTIONS && success || failure > RETVAL=$? >- [ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd >+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd > echo > } > >@@ -58,7 +58,7 @@ > echo -n $"Stopping $prog:" > killproc $SSHD -TERM > RETVAL=$? >- [ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/sshd >+ [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd > echo > } > >@@ -87,7 +87,7 @@ > condrestart) > if [ -f /var/lock/subsys/sshd ] ; then > do_restart_sanity_check >- if [ "$RETVAL" = 0 ] ; then >+ if [ $RETVAL -eq 0 ] ; then > stop > # avoid race > sleep 3
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 2059
: 2206