[haiku-bugs] [Haiku] #5966: USER variable in SetupEnvironment doesn't always match the passwd file

  • From: "augiedoggie" <trac@xxxxxxxxxxxx>
  • Date: Tue, 11 May 2010 04:44:18 -0000

#5966: USER variable in SetupEnvironment doesn't always match the passwd file
-------------------------+--------------------------------------------------
 Reporter:  augiedoggie  |       Owner:  nobody        
     Type:  bug          |      Status:  new           
 Priority:  normal       |   Milestone:  R1            
Component:  - General    |     Version:  R1/Development
 Keywords:               |   Blockedby:                
 Platform:  All          |    Blocking:                
-------------------------+--------------------------------------------------
 Currently /boot/system/boot/SetupEnvironment always exports the USER
 variable as baron.  This confuses some software which tries to look up the
 home directory based on this and can't find a baron entry in
 /boot/common/etc/passwd.  Perhaps it should look up this information with
 something like:



 {{{
 export USER=`grep :0:0: /etc/passwd | cut -f1 -d:`
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5966>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: