Comment 6 for bug 348639

Revision history for this message
Anders Kaseorg (andersk) wrote :

Oh oops. Also, another typo.

diff --git a/debian/local/Failsafe/failsafeXinit b/debian/local/Failsafe/failsafeXinit
index 37b18f3..0fcea8f 100755
--- a/debian/local/Failsafe/failsafeXinit
+++ b/debian/local/Failsafe/failsafeXinit
@@ -146,7 +146,8 @@ verify_xorgconf() {
 edit_config() {
     backup_xorg_conf || return 1

- xorg_conf_tmp=$(mktemp -t "/tmp/xorg.conf.XXXXXXXX")
+ xorg_conf_tmp=$(mktemp -t xorg.conf.XXXXXXXX)
+ chmod 644 "${xorg_conf_tmp}"
     zenity --text-info --editable --filename=/etc/X11/xorg.conf --width=640 --height=480 > "${xorg_conf_tmp}" && mv "${xorg_conf_tmp}" /etc/X11/xorg.conf
 }

@@ -167,7 +168,7 @@ save_config_logs() {
     tar -cf ${xorg_backup_file} ${xorg_backup_dir}
     rm -rf ${xorg_backup_dir}

- zenity --info --text "$(gettext 'Relevant configuration and log files have been saved to:\n')"$xorg_backup_file\n"$(gettext 'Bug reports can be submitted at http://www.launchpad.net/ubuntu/.\n')"
+ zenity --info --text "$(gettext 'Relevant configuration and log files have been saved to:\n')""$xorg_backup_file"$'\n'"$(gettext 'Bug reports can be submitted at http://www.launchpad.net/ubuntu/.\n')"
 }

 # Scan Xorg.0.log for errors