From fda1362eb0c0425036f05ed145e568e399c80269 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Sat, 11 Oct 2025 16:54:51 +0100 Subject: [PATCH] [iso] fix saving to an ISO path that contains spaces * Closes #2829. * Also set rufus-next to 4.12. --- configure | 20 ++++++++++---------- configure.ac | 2 +- src/iso.c | 2 +- src/rufus.rc | 12 ++++++------ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/configure b/configure index 67578825..5bf5affe 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for rufus 4.11. +# Generated by GNU Autoconf 2.71 for rufus 4.12. # # Report bugs to . # @@ -611,8 +611,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='rufus' PACKAGE_TARNAME='rufus' -PACKAGE_VERSION='4.11' -PACKAGE_STRING='rufus 4.11' +PACKAGE_VERSION='4.12' +PACKAGE_STRING='rufus 4.12' PACKAGE_BUGREPORT='https://github.com/pbatard/rufus/issues' PACKAGE_URL='https://rufus.ie' @@ -1269,7 +1269,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures rufus 4.11 to adapt to many kinds of systems. +\`configure' configures rufus 4.12 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1336,7 +1336,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of rufus 4.11:";; + short | recursive ) echo "Configuration of rufus 4.12:";; esac cat <<\_ACEOF @@ -1428,7 +1428,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -rufus configure 4.11 +rufus configure 4.12 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -1504,7 +1504,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by rufus $as_me 4.11, which was +It was created by rufus $as_me 4.12, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -2767,7 +2767,7 @@ fi # Define the identity of the package. PACKAGE='rufus' - VERSION='4.11' + VERSION='4.12' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -5313,7 +5313,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by rufus $as_me 4.11, which was +This file was extended by rufus $as_me 4.12, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -5369,7 +5369,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -rufus config.status 4.11 +rufus config.status 4.12 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/configure.ac b/configure.ac index 76c7e9e5..0e488ab0 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([rufus], [4.11], [https://github.com/pbatard/rufus/issues], [rufus], [https://rufus.ie]) +AC_INIT([rufus], [4.12], [https://github.com/pbatard/rufus/issues], [rufus], [https://rufus.ie]) AM_INIT_AUTOMAKE([-Wno-portability foreign no-dist no-dependencies]) AC_CONFIG_SRCDIR([src/rufus.c]) AC_CONFIG_MACRO_DIR([m4]) diff --git a/src/iso.c b/src/iso.c index 2349baaf..ec0965fc 100644 --- a/src/iso.c +++ b/src/iso.c @@ -2181,7 +2181,7 @@ DWORD WINAPI IsoSaveImageThread(void* param) // Save to UDF only, as Microsoft's implementation of ISO-9660 doesn't support multiextent // and produces BROKEN images if you try to add files larger than 4 GB. // Plus ISO-9660/Joliet limits labels to 16 characters and has issues with long paths. - static_sprintf(cmd, "%s\\%s\\oscdimg.exe -g -h -k -l\"%s\" -m -u2 -udfver102 %c:\\ %s", + static_sprintf(cmd, "%s\\%s\\oscdimg.exe -g -h -k -l\"%s\" -m -u2 -udfver102 %c:\\ \"%s\"", app_data_dir, FILES_DIR, label, letters[0], img_save->ImagePath); uprintf("Running command: '%s'", cmd); // For detecting typical oscdimg commandline progress report of type: "\r15.5% complete" diff --git a/src/rufus.rc b/src/rufus.rc index a84c3459..ef84246e 100644 --- a/src/rufus.rc +++ b/src/rufus.rc @@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_DIALOG DIALOGEX 12, 12, 232, 326 STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_ACCEPTFILES -CAPTION "Rufus 4.11.2285" +CAPTION "Rufus 4.12.2286" FONT 9, "Segoe UI Symbol", 400, 0, 0x0 BEGIN LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP @@ -408,8 +408,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 4,11,2285,0 - PRODUCTVERSION 4,11,2285,0 + FILEVERSION 4,12,2286,0 + PRODUCTVERSION 4,12,2286,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -427,13 +427,13 @@ BEGIN VALUE "Comments", "https://rufus.ie" VALUE "CompanyName", "Akeo Consulting" VALUE "FileDescription", "Rufus" - VALUE "FileVersion", "4.11.2285" + VALUE "FileVersion", "4.12.2286" VALUE "InternalName", "Rufus" VALUE "LegalCopyright", "© 2011-2025 Pete Batard (GPL v3)" VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html" - VALUE "OriginalFilename", "rufus-4.11.exe" + VALUE "OriginalFilename", "rufus-4.12.exe" VALUE "ProductName", "Rufus" - VALUE "ProductVersion", "4.11.2285" + VALUE "ProductVersion", "4.12.2286" END END BLOCK "VarFileInfo"