Bug 467487

Summary: running "you" as root causes yast2 online_update to run twice
Product: [openSUSE] openSUSE 11.1 Reporter: Bernhard Wiedemann <novellbmw>
Component: YaST2Assignee: Jiří Suchomel <jsuchome>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bernhard Wiedemann 2009-01-20 07:22:12 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081213 SUSE/1.1.14-1.1 SeaMonkey/1.1.14

running "you" as root causes yast2 online_update to run twice
This might be related to the fact, that there are no updates available when I do this.
I found that "you" is defined as an alias in /etc/bash.bashrc
It is defined the same on openSUSE-11.0 but I checked that yast2 does not return an error code to the caller on 11.0.

I propose to change the alias to
alias you='test "$EUID" = 0 && ( /sbin/yast2 online_update || true ) || su - -c "/sbin/yast2 online_update "'


Reproducible: Always

Steps to Reproduce:
1. in a terminal: su -
2. you
3. Cancel
Actual Results:  
after Cancel, yast2 online_update pops up again

Expected Results:  
after Cancel, it should just close as openSUSE-11.0 did.
Comment 1 Jiří Suchomel 2009-01-27 08:32:14 UTC
you are right about that alias

*** This bug has been marked as a duplicate of bug 441053 ***