In Oneiric beta2, env variable $LOGNAME is blank/null
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Light Display Manager |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is a new install done this morning, and fully updated twice today. The problem came to my attention when a backup script failed, which was traced to the fact that $LOGNAME variable was null.
I understand that the $LOGNAME variable "should not be relied on as it can be changed" however I'm sure a great number of backup scripts have used it over years since it was introduced in UNIX III. No previous Ubuntu releases have had a problem as far as I'm aware.
I originally asked a question on Launchpad as I wasn't sure if this was a bug:
https:/
however the respondent~
As a final test update manager was run and the system was rebooted, and it was verified that $LOGNAME was still null.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: bash 4.2-0ubuntu4
ProcVersionSign
Uname: Linux 3.0.0-12-generic i686
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu2
Architecture: i386
Date: Sun Oct 2 00:16:19 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110921.2)
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_AU.UTF-8
LANGUAGE=en_AU:en
SourcePackage: bash
UpgradeStatus: No upgrade log present (probably fresh install)
I believe this is related to core-utils, as per the man page on #LOGNAME