Opened 15 years ago

Closed 15 years ago

Last modified 15 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:
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 by alexbl, 15 years ago

id -un is probably what you actually want

comment:2 by bonefish, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in hrev36788.

comment:3 by augiedoggie, 15 years ago

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.