Skip to content

Commit 5af8295

Browse files
authored
Increase number of X's in all mktemp calls (boo#1208066) (openSUSE#988)
1 parent 37f54b8 commit 5af8295

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

build

+1-1
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ fi
14481448
expand_recipe_directories
14491449

14501450
if test -n "$LIST_STATE" ; then
1451-
BUILD_ROOT=`mktemp -d /var/tmp/build-list-state-XXXXXX`
1451+
BUILD_ROOT=`mktemp -d /var/tmp/build-list-state-XXXXXXXXXX`
14521452
test -d "$BUILD_ROOT" || cleanup_and_exit 3
14531453
RECIPEPATH=$RECIPEFILES # only one specified anyways
14541454
test "$RECIPEPATH" != "${RECIPEPATH%.src.rpm}" && recipe_unpack_srcrpm "$RECIPEPATH"

build-vm-pvm

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ vm_wipe_pvm(){
176176

177177
vm_fixup_pvm(){
178178
VM_SWAPDEV=/dev/sdb
179-
GRUBDIR=`mktemp -d /tmp/grubinstall.XXXX`
179+
GRUBDIR=`mktemp -d /tmp/grubinstall.XXXXXXXXXX`
180180
modules="ext2 part_msdos linux disk elf"
181181
grubcfg="$GRUBDIR/grub.cfg"
182182
grubimg="$GRUBDIR/grub.img"

build-vm-xen

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ vm_startup_xen() {
6565
echo "Please report to your server admin, there might be multiple services running for same domain"
6666
cleanup_and_exit 3
6767
fi
68-
XEN_CONF_FILE=`mktemp /var/tmp/build.xen.conf-XXXXXXXXX` || cleanup_and_exit 3
68+
XEN_CONF_FILE=`mktemp /var/tmp/build.xen.conf-XXXXXXXXXX` || cleanup_and_exit 3
6969

7070
echo "kernel = \"$vm_kernel\"" > $XEN_CONF_FILE
7171
echo "ramdisk = \"$vm_initrd\"" >> $XEN_CONF_FILE

build-vm-zvm

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ vm_initrd_obs_modules_zvm() {
334334
# initrd is to be created at $2-$3
335335
# first, test if initrd has already been created
336336
test -f "${2}-${3}" && return
337-
TEMPDIR=$(mktemp -d /tmp/initrd.XXX)
337+
TEMPDIR=$(mktemp -d /tmp/initrd.XXXXXXXXXX)
338338
pushd $TEMPDIR
339339
# unpack initrd to add the kernel modules
340340
xzcat "$2" | cpio -i

vc

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ if [ ! -e "$changelog" ]; then
118118
touch $changelog
119119
fi
120120

121-
tmpfile=`mktemp -q $changelog.vctmp.XXXXXX.changes`
121+
tmpfile=`mktemp -q $changelog.vctmp.XXXXXXXXXX.changes`
122122
if [ $? -ne 0 ]; then
123123
echo "$0: Can't create temp file, exiting..."
124124
exit 1

0 commit comments

Comments
 (0)