[Bug 1032740] [NEW] libc6 isn't returning a valid user in char *getlogin()
Jayson Reis
jaysonsantos2003 at yahoo.com.br
Fri Aug 3 17:19:21 UTC 2012
Public bug reported:
A simple c program in my machine demonstrate what is happening.
#include <unistd.h>
#include <stdio.h>
int main( int argc, char *argv[] ) {
char *name;
name = getlogin();
if (name != NULL)
printf("%s\n", name);
else
printf("name is null\n");
return 0;
}
I'm just compiling and running it and name aways come as NULL;
Note that i'm not a C developer, i got this when my python tests broke with os.getlogin.
Thank you
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libc6 2.15-0ubuntu10
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic-pae 3.2.21
Uname: Linux 3.2.0-27-generic-pae i686
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
Date: Fri Aug 3 14:16:20 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: eglibc
UpgradeStatus: Upgraded to precise on 2012-07-02 (32 days ago)
** Affects: eglibc (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386 precise running-unity
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1032740
Title:
libc6 isn't returning a valid user in char *getlogin()
Status in “eglibc” package in Ubuntu:
New
Bug description:
A simple c program in my machine demonstrate what is happening.
#include <unistd.h>
#include <stdio.h>
int main( int argc, char *argv[] ) {
char *name;
name = getlogin();
if (name != NULL)
printf("%s\n", name);
else
printf("name is null\n");
return 0;
}
I'm just compiling and running it and name aways come as NULL;
Note that i'm not a C developer, i got this when my python tests broke with os.getlogin.
Thank you
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libc6 2.15-0ubuntu10
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic-pae 3.2.21
Uname: Linux 3.2.0-27-generic-pae i686
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
Date: Fri Aug 3 14:16:20 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: eglibc
UpgradeStatus: Upgraded to precise on 2012-07-02 (32 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1032740/+subscriptions
More information about the foundations-bugs
mailing list