From e3f280a3ca70b1e80edca168af75ff55ccbd2172 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Sat, 10 Jun 2006 16:14:38 +0000 Subject: Added explicit mktemp template names so that mktemp is more compatible with other versions than Debian's. Also added Anarcat to the AUTHORS file --- lib/easydialog.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/easydialog.in b/lib/easydialog.in index d8033d4..d861218 100644 --- a/lib/easydialog.in +++ b/lib/easydialog.in @@ -48,7 +48,7 @@ gaugeBox() { } inputBox() { - local temp=$(mktemp -t) || exit 1 + local temp=$(mktemp -t backupninja.XXXXXX) || exit 1 trap "rm -f $temp" 0 REPLY= $DIALOG --backtitle "$BACKTITLE" --title "$1" \ @@ -80,7 +80,7 @@ _genericListBox() { local title=$1 local text=$2 shift 2 - local temp=$(mktemp -t) || exit 1 + local temp=$(mktemp -t backupninja.XXXXXX) || exit 1 trap "rm -f $temp" 0 REPLY= $DIALOG $HELP $_DEFAULT --backtitle "$BACKTITLE" --title "$title" \ @@ -133,7 +133,7 @@ textBox() { } passwordBox() { - local temp=$(mktemp -t) || exit 1 + local temp=$(mktemp -t backupninja.XXXXXX) || exit 1 trap "rm -f $temp" 0 REPLY= $DIALOG --backtitle "$BACKTITLE" --title "$1" \ @@ -175,7 +175,7 @@ listItem() { ## listDisplay() { boxtype=$1 - local temp=$(mktemp -t) || exit 1 + local temp=$(mktemp -t backupninja.XXXXXX) || exit 1 trap "rm -f $temp" 0 local label @@ -221,7 +221,7 @@ formItem() { } formDisplay() { - local temp=$(mktemp -t) || exit 1 + local temp=$(mktemp -t backupninja.XXXXXX) || exit 1 max_length=0 for ((i=0; i < ${#_form_labels[@]} ; i++)); do -- cgit v1.2.3