chiark / gitweb /
bin/mdw-editor: Set TMPDIR from TMP if it's unset.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 12 Dec 2011 23:48:43 +0000 (23:48 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 12 Dec 2011 23:50:28 +0000 (23:50 +0000)
commit6f75a47e1fda9f8c718d0193b9f18ff1b73a1952
tree3ec620d807d7ecd5b727d70a2934bded534c8925
parentc39d1139c4dc74bae2bdb809799efcfe8306ddca
bin/mdw-editor: Set TMPDIR from TMP if it's unset.

Setuid programs drop the TMPDIR environment variable.  This means that
emacsclient can't find the correct socket directory if it's started via
`sudo -e', which is annoying.  Fortunately, we have a copy of the
correct directory lying around, so we can use it to fix things up.
bin/mdw-editor