Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176125 - ypbind-1.19.1-r1 init.d/ypbind wrong usage of $?
Summary: ypbind-1.19.1-r1 init.d/ypbind wrong usage of $?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-26 14:10 UTC by Mark Dominik Bürkle
Modified: 2007-06-14 06:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Dominik Bürkle 2007-04-26 14:10:13 UTC
Please check the init.d/ypbind script for the intended behaviour...


#>> cat ypbind.patch
--- ypbind.org  2007-02-17 00:43:17.000000000 +0100
+++ ypbind      2007-03-05 10:40:57.000000000 +0100
@@ -12,7 +12,8 @@
        ebegin "Starting ypbind"
        if [ -n "${YPBIND_OPTS}" ]; then YOPTS="-- ${YPBIND_OPTS}"; fi
        start-stop-daemon --start --quiet --exec /usr/sbin/ypbind ${YOPTS}
-       if [ -n "$?" ] ; then
+       ret=$?
+       if [ $ret -eq 0 ] ; then
                notfound=1
                for i in 0 1 2 3 4 5 6 7 8 9
                do
@@ -25,7 +26,7 @@
                        eend 0
                fi
        else
-               eend $?
+               eend $ret
        fi
 }

#>> 

Kind regards,
Dominik
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2007-06-14 06:07:43 UTC
This was fixed in portage a few weeks ago, and I forgot to close the bug.