Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
preserve TMPDIR and HOSTALIASES across snap-confine invocation (LP: #1682308) #3872
Merged
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
217ed0d
preserve TMPDIR and HOSTALIASES across snap-confine invocation (LP: #…
mwhudson 3d65a10
only preserve TMPDIR etc for a classic snap
mwhudson 7748a45
preserve all environment variables that the dynamic loader strips out
mwhudson 88b3adb
ignore any SNAP_SAVED_foo variables already set in the environment
mwhudson 5493373
address review comments
mwhudson c8b5930
add unit tests for env var renaming behaviour
mwhudson 2394075
use AddCleanup instead
mwhudson 6ab75d3
attempt at a spread test
mwhudson be1a8b7
Merge remote-tracking branch 'origin/master' into lp-1682308
mwhudson 011e101
SNAPMOUNTDIR -> SNAP_MOUNT_DIR in my test
mwhudson e87923e
Merge branch 'master' into lp-1682308
mwhudson 10bcd91
remove "ineffective assignments"
mwhudson 31c6899
fix test compilation
mwhudson 1de1b38
snap/snapenv: rename flags for less ambiguity
zyga 76c743c
snap/snapenv: add TODO note
zyga 7d588d0
swap test names around so they make sense
mwhudson 2ef8443
add a test that TMPDIR is not passed through to a confine snap
mwhudson
Jump to file or symbol
Failed to load files and symbols.
| @@ -1,7 +1,12 @@ | ||
| #include <stdio.h> | ||
| +#include <stdlib.h> | ||
| -int main() | ||
| +int main(int argc, char **argv) | ||
| { | ||
| - printf("Hello Classic!\n"); | ||
| + if (argc == 1) { | ||
| + printf("Hello Classic!\n"); | ||
| + } else { | ||
| + printf("TMPDIR=%s\n", getenv("TMPDIR")); | ||
| + } | ||
| return 0; | ||
| } |