This bug seems to be caused by a Debian applied patch.

The following change is made to src/libjasper/base/jas_stream.c:

        /* Choose a file name. */
-       tmpnam(obj->pathname);
+       snprintf(obj->pathname, L_tmpnam, "%stmp.XXXXXXXXXX", P_tmpdir);


Since the temp directory used is "/tmp", and $TEMPDIR is ignored, this
tries to create files as "/tmptmp.*" which won't work most of the time.

Changing it to instead use:


        /* Choose a file name. */
-       tmpnam(obj->pathname);
+       snprintf(obj->pathname, L_tmpnam, "%s/tmp.XXXXXXXXXX", P_tmpdir);


resolves the issue. (note '/' after '%s)
-- 
Tyler Trafford



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to