diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-02-19 04:30:47 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-02-19 04:30:47 -0500 |
commit | 85c1f65ccd66be7f7ca939729f84bfab0603fdab (patch) | |
tree | 3ed25c27d0c12fd6ae3297cb73317e429ffbdc99 /src/share/common | |
parent | b73147ef2259d6596554db071e3f934bb5e7cbe5 (diff) |
added msmktempfile; got rid of /dev/stdin assumption in ssh_proxycommand for portability
Diffstat (limited to 'src/share/common')
-rw-r--r-- | src/share/common | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/share/common b/src/share/common index 1c16ac6..bfe73a3 100644 --- a/src/share/common +++ b/src/share/common @@ -149,9 +149,14 @@ cutline() { head --line="$1" "$2" | tail -1 } -# make a temporary directly +# make a temporary directory msmktempdir() { - mktemp -d ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX + mktemp -d ${TMPDIR:-/tmp}/monkeysphere.XXXXXXXXXX +} + +# make a temporary file +msmktempfile() { + mktemp ${TMPDIR:-/tmp}/monkeysphere.XXXXXXXXXX } # this is a wrapper for doing lock functions. |