Bug 29579 - getenv does not work
: getenv does not work
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/musl)
: unstable
: all Linux
: P3 critical
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2013-11-13 18:25 by
Modified: 2013-11-13 20:43 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2013-11-13 18:25:10
$ cat <<EOF | gcc -xc -Wall -O2 - && env -i PATH=/bin:/usr/bin ./a.out
#include <stdio.h>
#include <stdlib.h>
int main(void) {printf("PATH=%s\n", getenv("PATH")); return 0;}
EOF
PATH=/bin:/usr/bin

$ cat <<EOF | musl-gcc -xc -Wall -O2 - && env -i PATH=/bin:/usr/bin ./a.out
#include <stdio.h>
#include <stdlib.h>
int main(void) {printf("PATH=%s\n", getenv("PATH")); return 0;}
EOF
PATH=(null)
------- Comment #1 From 2013-11-13 20:43:28 -------
musl-0.9.14-alt21 -> sisyphus:

* Wed Nov 13 2013 Led <led@altlinux> 0.9.14-alt21
- init '__environ' (ALT#29579)