Bug#294877: Patch
Sam Morris
Sam Morris <sam@robots.org.uk>, 294877@bugs.debian.org
Sat, 12 Feb 2005 18:14:12 +0000
This is a multi-part message in MIME format.
--------------050406010903070205090609
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
I have written a patch for this problem. The error happens because Totem
doesn't take into account device paths with '..' in their name; this
happens on my system because I have:
/dev/cdroms/cdrom1 -> ../ide/host0/bus1/target1/lun0/cd
So Totem gets the device path "/dev/../ide/host0/bus1/target1/lun0/cd",
which != "/dev/ide/host0/bus1/target1/lun0/cd" in the check on
totem-disc.c:197.
To correct this I altered totem_disc_resolve_link to canonicalise the
path it returns. I have also fixed a bug in debian/rules that prevented
the CFLAGS set in the Makefile from being passed to configure, and hence
the build process.
Regards,
--
Sam Morris
http://robots.org.uk/
PGP key id 5EA01078
Fingerprint 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078
--------------050406010903070205090609
Content-Type: text/plain;
name="totem-realpath.dpatch"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="totem-realpath.dpatch"
IyEgL2Jpbi9zaCAvdXNyL3NoYXJlL2RwYXRjaC9kcGF0Y2gtcnVuCiMjIHRvdGVtLXJlYWxw
YXRoLmRwYXRjaCBieSBTYW0gTW9ycmlzIDxzYW1Acm9ib3RzLm9yZy51az4KIyMKIyMgRFA6
IEZpeGVzIHRvdGVtJ3MgaGFuZGxpbmcgb2YgJy4uJyBhbmQgJy4nIGNvbXBvbmVudHMgaW4g
ZGV2aWNlIG5hbWVzLgoKQERQQVRDSEAKZGlmZiAtdXJOYWQgdG90ZW0tMC4xMDAvZGViaWFu
L3J1bGVzIC90bXAvZHBlcC50TVFZbUgvdG90ZW0tMC4xMDAvZGViaWFuL3J1bGVzCi0tLSB0
b3RlbS0wLjEwMC9kZWJpYW4vcnVsZXMJMjAwNS0wMi0xMiAxODowMTowMy4wMDAwMDAwMDAg
KzAwMDAKKysrIC90bXAvZHBlcC50TVFZbUgvdG90Z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