Skip to content
Snippets Groups Projects
Commit e3f280a3 authored by micah's avatar micah :speech_balloon:
Browse files

Added explicit mktemp template names so that mktemp is more compatible with other versions

than Debian's. Also added Anarcat to the AUTHORS file
parent 11601b4c
No related branches found
No related tags found
No related merge requests found
...@@ -16,3 +16,4 @@ Daniel.Bonniot@inria.fr ...@@ -16,3 +16,4 @@ Daniel.Bonniot@inria.fr
Brad Fritz <brad@fritzfam.com> -- trac patch Brad Fritz <brad@fritzfam.com> -- trac patch
garcondumonde@riseup.net garcondumonde@riseup.net
Martin Krafft madduck@debian.org -- admingroup patch Martin Krafft madduck@debian.org -- admingroup patch
Anarcat
...@@ -51,6 +51,8 @@ version 0.9.4 -- unreleased ...@@ -51,6 +51,8 @@ version 0.9.4 -- unreleased
vserver: vserver:
. init_vservers: fixed Debian bug #351083 (improper readlink syntax) . init_vservers: fixed Debian bug #351083 (improper readlink syntax)
. found_vservers: escaped special grep repetition character + . found_vservers: escaped special grep repetition character +
. forced mktemp to use a template with a name to be more compatible with
different versions of mktemp, thanks anarcat
ninjahelper changes ninjahelper changes
. Recursively ignore subdirs in /etc/backup.d (Closes: #361102) . Recursively ignore subdirs in /etc/backup.d (Closes: #361102)
. Fix configdirectory error that forced you to use /etc/backup.d, thanks anarcat . Fix configdirectory error that forced you to use /etc/backup.d, thanks anarcat
......
...@@ -48,7 +48,7 @@ gaugeBox() { ...@@ -48,7 +48,7 @@ gaugeBox() {
} }
inputBox() { inputBox() {
local temp=$(mktemp -t) || exit 1 local temp=$(mktemp -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0 trap "rm -f $temp" 0
REPLY= REPLY=
$DIALOG --backtitle "$BACKTITLE" --title "$1" \ $DIALOG --backtitle "$BACKTITLE" --title "$1" \
...@@ -80,7 +80,7 @@ _genericListBox() { ...@@ -80,7 +80,7 @@ _genericListBox() {
local title=$1 local title=$1
local text=$2 local text=$2
shift 2 shift 2
local temp=$(mktemp -t) || exit 1 local temp=$(mktemp -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0 trap "rm -f $temp" 0
REPLY= REPLY=
$DIALOG $HELP $_DEFAULT --backtitle "$BACKTITLE" --title "$title" \ $DIALOG $HELP $_DEFAULT --backtitle "$BACKTITLE" --title "$title" \
...@@ -133,7 +133,7 @@ textBox() { ...@@ -133,7 +133,7 @@ textBox() {
} }
passwordBox() { passwordBox() {
local temp=$(mktemp -t) || exit 1 local temp=$(mktemp -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0 trap "rm -f $temp" 0
REPLY= REPLY=
$DIALOG --backtitle "$BACKTITLE" --title "$1" \ $DIALOG --backtitle "$BACKTITLE" --title "$1" \
...@@ -175,7 +175,7 @@ listItem() { ...@@ -175,7 +175,7 @@ listItem() {
## ##
listDisplay() { listDisplay() {
boxtype=$1 boxtype=$1
local temp=$(mktemp -t) || exit 1 local temp=$(mktemp -t backupninja.XXXXXX) || exit 1
trap "rm -f $temp" 0 trap "rm -f $temp" 0
local label local label
...@@ -221,7 +221,7 @@ formItem() { ...@@ -221,7 +221,7 @@ formItem() {
} }
formDisplay() { formDisplay() {
local temp=$(mktemp -t) || exit 1 local temp=$(mktemp -t backupninja.XXXXXX) || exit 1
max_length=0 max_length=0
for ((i=0; i < ${#_form_labels[@]} ; i++)); do for ((i=0; i < ${#_form_labels[@]} ; i++)); do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment