diff options
| author | Jaakko Heinonen <jh@FreeBSD.org> | 2010-03-23 16:45:29 +0000 |
|---|---|---|
| committer | Jaakko Heinonen <jh@FreeBSD.org> | 2010-03-23 16:45:29 +0000 |
| commit | 0ebeb8cec4edb46c8bb931c7c2ff075d7561ac21 (patch) | |
| tree | a3de8bf421dc5961d50df953f6dc7621694af449 /etc | |
| parent | 8018e843a306400d5d6ad3d57f9bcf932d5df52b (diff) | |
Notes
Diffstat (limited to 'etc')
| -rwxr-xr-x | etc/rc.d/tmp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp index abf53ac4de1d..282709e5e351 100755 --- a/etc/rc.d/tmp +++ b/etc/rc.d/tmp @@ -51,8 +51,8 @@ case "${tmpmfs}" in [Nn][Oo]) ;; *) - if /bin/mkdir -p /tmp/.diskless 2> /dev/null; then - rmdir /tmp/.diskless + if _tmpdir=$(mktemp -d -q /tmp/.diskless.XXXXXX); then + rmdir ${_tmpdir} else if [ -h /tmp ]; then echo "*** /tmp is a symlink to a non-writable area!" |
