Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83421 - PATCH: motif-config exits instead of returning while deactivating a profile
Summary: PATCH: motif-config exits instead of returning while deactivating a profile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-26 16:51 UTC by devsk
Modified: 2005-02-27 02:36 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 devsk 2005-02-26 16:51:31 UTC
I think you intended to 'return 0' instead of 'exit 0' at line 90. I can never set a profile if current profile is not set(chicken and egg), because I exit instead of returnng to 'activate'. This patch should help.

--- /usr/bin/motif-config.orig  2005-02-26 16:20:43.527582368 -0800
+++ /usr/bin/motif-config       2005-02-26 16:20:57.881400256 -0800
@@ -87,7 +87,7 @@
        current=`cat ${CONFIG_FILE} 2>/dev/null`
 
        if [ -z "$current" ]; then
-               exit 0
+               return 0
        fi
 
        # libs
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2005-02-27 02:36:26 UTC
it's fixed in motif-config-0.2