From 76ef832ce5348d12a871223d4c034c7daeaddb82 Mon Sep 17 00:00:00 2001 From: Tim Williams Date: Mon, 17 Oct 2011 18:47:27 +0100 Subject: Adding the remaining Mandriva patches and spec files --- .../servicemenu-mountiso/fix_weird_iso_names.patch | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 mandriva/2010.2/other/servicemenu-mountiso/fix_weird_iso_names.patch (limited to 'mandriva/2010.2/other/servicemenu-mountiso/fix_weird_iso_names.patch') diff --git a/mandriva/2010.2/other/servicemenu-mountiso/fix_weird_iso_names.patch b/mandriva/2010.2/other/servicemenu-mountiso/fix_weird_iso_names.patch new file mode 100644 index 000000000..814393217 --- /dev/null +++ b/mandriva/2010.2/other/servicemenu-mountiso/fix_weird_iso_names.patch @@ -0,0 +1,57 @@ +diff -Naur usr/bin/mountiso.sh usr.yedek/bin/mountiso.sh +--- usr/bin/mountiso.sh 2008-03-22 18:39:29.000000000 +0200 ++++ usr.yedek/bin/mountiso.sh 2009-11-21 16:29:27.000000000 +0200 +@@ -1,11 +1,23 @@ + #!/bin/sh + # Mount-ISO v0.9.5 ++# Define NEWLINE as the delimiter... ++IFS=' ++ ++'; ++ ++ ++ + BSNAME="`basename "$1"`" ++if [ -f /opt/kde3/bin/kdesu ]; then ++ kdesu="/opt/kde3/bin/kdesu" ++else ++ kdesu="/usr/bin/kdesu" ++fi + + if ( `echo "$BSNAME" | grep "Mount-ISO" > /dev/null` ) then + MOUNTDIR="$1" + else +- MOUNTDIR="$HOME/Desktop/Mount-ISO ($BSNAME)" ++ MOUNTDIR="$HOME/Mount-ISO ($BSNAME)" + fi + + function dialog { +@@ -129,8 +141,8 @@ + } + + function check_mount { +- DEV="`mount | grep "$1" | cut -f 1 -d " "`" +- if ( test ! -z "$DEV" ) then ++ DEV="`mount | grep "$1" | cut -f 1 -d ' '`" ++ if ( test ! -z \"$DEV\" ) then + return 0 + else + return 1 +@@ -208,7 +220,7 @@ + err 7 "$1" + ;; + esac +- kdesu -c "mount -t udf,iso9660 -o loop,ro,nodev,noexec,nosuid${MODE} \"${1}\" \"$MOUNTDIR\"" ++ $kdesu -c "mount -t udf,iso9660 -o loop,ro,nodev,noexec,nosuid${MODE} \"${1}\" \"$MOUNTDIR\"" + fi + if ( check_mount "$MOUNTDIR" ) then + kfmclient openURL "$MOUNTDIR" && note 1 +@@ -221,7 +233,7 @@ + if (test ! -d "$MOUNTDIR") then + err 4 "$1" + elif (check_mount "$MOUNTDIR") then +- kdesu -c "umount \"$MOUNTDIR\"" && ++ $kdesu -c "umount \"$MOUNTDIR\"" && + rmdir "$MOUNTDIR" && note 2 || + err 13 "$1" + if ( test "${DEV##/dev/cdemu/}" -ge 0 2>/dev/null ) then -- cgit v1.2.3