bardecode does not like colons in directory names

Bug #1516548 reported by Muelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
exactimage (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ mkdir /tmp/foo:bar
$ touch /tmp/foo:bar/baz
$ bardecode /tmp/foo:bar/baz
Error reading /tmp/foo:bar/baz
$ strace -eopen -f bardecode /tmp/foo:bar/baz
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libfreetype.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libjpeg.so.8", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libtiff.so.5", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpng12.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgif.so.4", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libjasper.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libIlmImf.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libHalf.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libIex.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libexpat.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgomp.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libjbig.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libIlmThread.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("bar/baz", O_RDONLY) = -1 ENOENT (No such file or directory)
Error reading /tmp/foo:bar/baz
+++ exited with 1 +++

It tries to open() bar/baz. It should have tried /tmp/foo:bar/baz.

While this looks like a contrived example, it breaks gvfs, i.e. /run/user/1000/gvfs/sftp:host=...

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: exactimage 0.8.9-7build1
ProcVersionSignature: Ubuntu 3.19.0-31.36-generic 3.19.8-ckt7
Uname: Linux 3.19.0-31-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.7
Architecture: amd64
CurrentDesktop: GNOME
Date: Mon Nov 16 10:44:05 2015
SourcePackage: exactimage
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Muelli (ubuntu-bugs-auftrags-killer) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package exactimage - 0.9.1-11

---------------
exactimage (0.9.1-11) unstable; urgency=medium

  * debian/patches:
    - Add fixed-loading-absolute-filenames-with-colon-was-parsed-as.patch,
      fix loading (absolute) filenames with colon (LP: #1516548)
    - Add Build-as-C-98-code-to-avoid-errors-when-compiling-as-C-11.patch,
      Build as C++98 code to avoid errors when compiling as C++11
      (Closes: #811784)
  * debian/rules:
    - Disable LTO again due to GCC stability problems

 -- Sven Eckelmann <email address hidden> Fri, 22 Jan 2016 15:20:48 +0100

Changed in exactimage (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.