Bug 29579 - getenv does not work
Summary: getenv does not work
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: musl (show other bugs)
Version: unstable
Hardware: all Linux
: P3 critical
Assignee: Vitaly Chikunov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-13 18:25 MSK by Dmitry V. Levin
Modified: 2013-11-13 20:43 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry V. Levin 2013-11-13 18:25:10 MSK
$ 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 Repository Robot 2013-11-13 20:43:28 MSK
musl-0.9.14-alt21 -> sisyphus:

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