Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 83421

Summary: PATCH: motif-config exits instead of returning while deactivating a profile
Product: Gentoo Linux Reporter: devsk <funtoos>
Component: Current packagesAssignee: Heinrich Wendel (RETIRED) <lanius>
Status: RESOLVED FIXED    
Severity: critical    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

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