Skip to content
This repository was archived by the owner on Jul 9, 2020. It is now read-only.

hardcode /tmp on MacOS - #55

Merged
justinta merged 2 commits into
vmware-archive:developfrom
jfindlay:tmpdir
Apr 8, 2016
Merged

justinta merged 2 commits into
vmware-archive:developfrom
jfindlay:tmpdir

Conversation

@jfindlay

@jfindlay jfindlay commented Apr 8, 2016

Copy link
Copy Markdown
Contributor

Updates #53.

When logging in as root over ssh root@host, $TMPDIR and
tempfile.gettempdir() are both set to a variation of:

/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/

When logging in as root over sudo -i, $TMPDIR is unset and
tempfile.gettempdir() is set to /tmp.

My guess is that the second case is an unintended or uncorrected omision
by Apple as they have introduced the longer, randomized temp path in a
recent version of MacOS.

jfindlay added 2 commits April 8, 2016 13:17
Updates 97bae19.

When logging in as root over `ssh root@host`, `$TMPDIR` and
`tempfile.gettempdir()` are both set to a variation of:
```
/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/
```
When logging in as root over `sudo -i`, `$TMPDIR` is unset and
`tempfile.gettempdir()` is set to `/tmp`.

My guess is that the second case is an unintended or uncorrected omision
by Apple as they have introduced the longer, randomized temp path in a
recent version of MacOS.
Otherwise the logs will be practically impossible to find.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants