Skip to content

Commit

Permalink
Increase number of X's in all mktemp calls (boo#1208066) (#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Mar 27, 2024
1 parent 37f54b8 commit 5af8295
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build
Expand Up @@ -1448,7 +1448,7 @@ fi
expand_recipe_directories

if test -n "$LIST_STATE" ; then
BUILD_ROOT=`mktemp -d /var/tmp/build-list-state-XXXXXX`
BUILD_ROOT=`mktemp -d /var/tmp/build-list-state-XXXXXXXXXX`
test -d "$BUILD_ROOT" || cleanup_and_exit 3
RECIPEPATH=$RECIPEFILES # only one specified anyways
test "$RECIPEPATH" != "${RECIPEPATH%.src.rpm}" && recipe_unpack_srcrpm "$RECIPEPATH"
Expand Down
2 changes: 1 addition & 1 deletion build-vm-pvm
Expand Up @@ -176,7 +176,7 @@ vm_wipe_pvm(){

vm_fixup_pvm(){
VM_SWAPDEV=/dev/sdb
GRUBDIR=`mktemp -d /tmp/grubinstall.XXXX`
GRUBDIR=`mktemp -d /tmp/grubinstall.XXXXXXXXXX`
modules="ext2 part_msdos linux disk elf"
grubcfg="$GRUBDIR/grub.cfg"
grubimg="$GRUBDIR/grub.img"
Expand Down
2 changes: 1 addition & 1 deletion build-vm-xen
Expand Up @@ -65,7 +65,7 @@ vm_startup_xen() {
echo "Please report to your server admin, there might be multiple services running for same domain"
cleanup_and_exit 3
fi
XEN_CONF_FILE=`mktemp /var/tmp/build.xen.conf-XXXXXXXXX` || cleanup_and_exit 3
XEN_CONF_FILE=`mktemp /var/tmp/build.xen.conf-XXXXXXXXXX` || cleanup_and_exit 3

echo "kernel = \"$vm_kernel\"" > $XEN_CONF_FILE
echo "ramdisk = \"$vm_initrd\"" >> $XEN_CONF_FILE
Expand Down
2 changes: 1 addition & 1 deletion build-vm-zvm
Expand Up @@ -334,7 +334,7 @@ vm_initrd_obs_modules_zvm() {
# initrd is to be created at $2-$3
# first, test if initrd has already been created
test -f "${2}-${3}" && return
TEMPDIR=$(mktemp -d /tmp/initrd.XXX)
TEMPDIR=$(mktemp -d /tmp/initrd.XXXXXXXXXX)
pushd $TEMPDIR
# unpack initrd to add the kernel modules
xzcat "$2" | cpio -i
Expand Down
2 changes: 1 addition & 1 deletion vc
Expand Up @@ -118,7 +118,7 @@ if [ ! -e "$changelog" ]; then
touch $changelog
fi

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

0 comments on commit 5af8295

Please sign in to comment.