From: Enrico Scholz Date: Mon, 19 Jan 2004 23:00:12 +0000 (+0000) Subject: use an argument on 'mktemp' call X-Git-Tag: version_0_27_90~4 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f56b8031ff3c2798198846e078dacfb84131cac8;p=util-vserver.git use an argument on 'mktemp' call git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@649 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/scripts/vserver-copy b/util-vserver/scripts/vserver-copy index fbf5c14..8e5a995 100755 --- a/util-vserver/scripts/vserver-copy +++ b/util-vserver/scripts/vserver-copy @@ -47,7 +47,8 @@ VERSION="0.4" umask 022 me=${0##*/} -mktemp=$(which mktemp 2>/dev/null) || mktemp=$(which tempfile 2>/dev/null) || { +mktemp="$(which mktemp 2>/dev/null) /tmp/vc.XXXXXX" || \ +mktemp=$(which tempfile 2>/dev/null) || { echo $"Can not find mktemp or tempfile" >&2 exit 1 }