Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5966 closed bug (fixed)

USER variable in SetupEnvironment doesn't always match the passwd file

Reported by: augiedoggie Owned by: nobody
Priority: normal Milestone: R1
Component: - General Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

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:`

Change History (3)

comment:1 Changed 9 years ago by alexbl

id -un is probably what you actually want

comment:2 Changed 9 years ago by bonefish

Resolution: fixed
Status: newclosed

Fixed in hrev36788.

comment:3 Changed 9 years ago by augiedoggie

Thanks for the fix. I knew there was a command that would do it but couldn't remember what it was last night.

Note: See TracTickets for help on using tickets.