[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#224863: marked as done (xdvi: wrapper script creates temporary file in wrong directory)



Your message dated Tue, 20 Jan 2004 01:47:33 -0500
with message-id <E1Aipfh-0007Mk-00@auric.debian.org>
and subject line Bug#221793: fixed in tetex-bin 2.0.2-6
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 23 Dec 2003 03:16:05 +0000
>From dpt@lotus.bostoncoop.net Mon Dec 22 21:15:56 2003
Return-path: <dpt@lotus.bostoncoop.net>
Received: from kung-2.eecs.harvard.edu (smtp.coopt.net) [140.247.60.197] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AYcRF-0006tl-00; Mon, 22 Dec 2003 20:38:26 -0600
Received: from lotus (roam240-220.fas.harvard.edu [140.247.240.220])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.coopt.net (Postfix) with ESMTP
	id AC56022CB82; Mon, 22 Dec 2003 21:38:24 -0500 (EST)
Received: by lotus (Postfix, from userid 1000)
	id 3D56F10CB; Mon, 22 Dec 2003 21:38:16 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Dylan Thurston <dpt@math.harvard.edu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: xdvi: wrapper script creates temporary file in wrong directory
X-Mailer: reportbug 2.37
Date: Mon, 22 Dec 2003 21:38:16 -0500
Message-Id: <20031223023816.3D56F10CB@lotus>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 
	2.60-master.debian.org_2003_11_25-bugs.debian.org_2003_12_15 
	(1.212-2003-09-23-exp) on master.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-master.debian.org_2003_11_25-bugs.debian.org_2003_12_15
X-Spam-Level: 

Package: tetex-bin
Version: 2.0.2-5.1
Severity: normal
Tags: patch

The wrapper in /usr/bin/xdvi helpfully uncompresses gzip'ed files, but
it does it in the current directory, rather than in /tmp as all sane
programs should do.  I think this is a misfeature of perl in
File::Temp::tempfile: if you give it an explicit template, it tries to
put the temporary file in the current directory.  You could pass a DIR
argument, but it's probably better to drop all the arguments, since
they're unnecessary.

Here's a patch.

--- /usr/bin/xdvi       2003-11-13 18:33:29.000000000 -0500
+++ xdvi        2003-12-22 21:36:12.000000000 -0500
@@ -65,9 +65,7 @@
        my @command = $1 eq 'bz2' ? qw(bzip2 -d -c) : qw(gzip -d -c);
 
        require Fcntl;
-       my $fh = tempfile( "tetexXXXXXX",
-                          SUFFIX => ".dvi",
-                          UNLINK => 1 )
+       my $fh = tempfile()
            or die "xdvi: cannot create temporary file: $!\n";
        fcntl $fh, Fcntl::F_SETFD(), 0
            or die "xdvi: disabling close-on-exec for temporary file: $!\n";


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux lotus 2.6.0-test11 #1 Sun Nov 30 15:03:31 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages tetex-bin depends on:
ii  debconf                    1.3.22        Debian configuration management sy
ii  debianutils                2.6.1         Miscellaneous utilities specific t
ii  dpkg                       1.10.18       Package maintenance system for Deb
ii  ed                         0.2-20        The classic unix line editor
ii  libc6                      2.3.2.ds1-10  GNU C Library: Shared libraries an
ii  libgcc1                    1:3.3.3-0pre0 GCC support library
ii  libkpathsea3               2.0.2-5.1     path search library for teTeX (run
ii  libpng12-0                 1.2.5.0-4     PNG library - runtime
ii  libstdc++5                 1:3.3.3-0pre0 The GNU Standard C++ Library v3
ii  libwww0                    5.4.0-9       The W3C WWW library
ii  libxaw7                    4.2.1-14      X Athena widget set library
ii  mime-support               3.23-1        MIME files 'mime.types' & 'mailcap
ii  perl                       5.8.2-2       Larry Wall's Practical Extraction 
ii  t1lib1                     1.3.1-6       Type 1 font rasterizer library - r
ii  tetex-base                 2.0.2-5.1     Basic library files of teTeX
ii  xlibs                      4.2.1-14      X Window System client libraries
ii  zlib1g                     1:1.2.1-3     compression library - runtime

-- debconf information:
* tetex-bin/hyphen: french[=patois], ngerman[=naustrian-neue_Rechtschreibung]
  tetex-bin/oldcfg: true
  tetex-bin/upd_map: true
  tetex-bin/cnf_name: 
  tetex-bin/fmtutil: true
* tetex-bin/use_debconf: true
* tetex-bin/groupname: users
  tetex-bin/userperm: false
  tetex-bin/groupperm: true
* tetex-bin/lsr-perms: true
* tetex-bin/texmf: true


---------------------------------------
Received: (at 221793-close) by bugs.debian.org; 20 Jan 2004 06:49:10 +0000
>From katie@auric.debian.org Mon Jan 19 22:49:10 2004
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AiphG-00005h-00; Mon, 19 Jan 2004 22:49:10 -0800
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 1Aipfh-0007Mk-00; Tue, 20 Jan 2004 01:47:33 -0500
From: Atsuhito KOHDA <kohda@debian.org>
To: 221793-close@bugs.debian.org
X-Katie: $Revision: 1.43 $
Subject: Bug#221793: fixed in tetex-bin 2.0.2-6
Message-Id: <E1Aipfh-0007Mk-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Tue, 20 Jan 2004 01:47:33 -0500
Delivered-To: 221793-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_14 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.5 required=4.0 tests=HAS_BUG_NUMBER,
	MAILTO_TO_SPAM_ADDR autolearn=no 
	version=2.60-bugs.debian.org_2004_01_14
X-Spam-Level: 

Source: tetex-bin
Source-Version: 2.0.2-6

We believe that the bug you reported is fixed in the latest version of
tetex-bin, which is due to be installed in the Debian FTP archive:

libkpathsea-dev_2.0.2-6_i386.deb
  to pool/main/t/tetex-bin/libkpathsea-dev_2.0.2-6_i386.deb
libkpathsea3_2.0.2-6_i386.deb
  to pool/main/t/tetex-bin/libkpathsea3_2.0.2-6_i386.deb
tetex-bin_2.0.2-6.diff.gz
  to pool/main/t/tetex-bin/tetex-bin_2.0.2-6.diff.gz
tetex-bin_2.0.2-6.dsc
  to pool/main/t/tetex-bin/tetex-bin_2.0.2-6.dsc
tetex-bin_2.0.2-6_i386.deb
  to pool/main/t/tetex-bin/tetex-bin_2.0.2-6_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 221793@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Atsuhito KOHDA <kohda@debian.org> (supplier of updated tetex-bin package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 19 Jan 2004 20:56:10 +0900
Source: tetex-bin
Binary: libkpathsea3 tetex-bin libkpathsea-dev
Architecture: source i386
Version: 2.0.2-6
Distribution: unstable
Urgency: low
Maintainer: teTeX maintainers <debian-tetex-maint@lists.debian.org>
Changed-By: Atsuhito KOHDA <kohda@debian.org>
Description: 
 libkpathsea-dev - path search library for teTeX (devel part)
 libkpathsea3 - path search library for teTeX (runtime part)
 tetex-bin  - The teTeX binary files
Closes: 123393 221793 223412 223734 227361 228325
Changes: 
 tetex-bin (2.0.2-6) unstable; urgency=low
 .
   * Fixed xdvi tempfile bug (closes: #221793) [jdg]
   * Fixed README.Debian (corrected explanation for update-texmf and also added
     comment on secure mode of dvips).  Thanks to Michael K. Edwards"
     <mkedebian@sane.net>, Hilmar Preusse <hille42@web.de> and Frank Küster
     <frank@kuesterei.ch>  (Closes: #223734)  [kohda]
   * Updated texdoc.man, thanks to Hilmar Preusse <hille42@web.de>  [kohda]
   * Fixed 95NonPath.cnf (patch-tmp) so that pdf(la)tex can create bitmap fonts.
     Thanks to Frank Küster <frank@kuesterei.ch>  (Closes: #223412)  [kohda]
   * Fixed mktexlsr (patch-tmp), now it would check if a file size was 0,
     thanks to Hilmar Preusse <hille42@web.de>  (Closes: #123393)  [kohda]
   * Updated es.po, thanks to Javier Fernández-Sanguino Peña <jfs@computer.org>
     (Closes: #228325)  [kohda]
   * Setted SHELL=/bin/bash in rules to fix FTBFS problem.  Thanks to Eric Wong
     <normalperson@yhbt.net>  (Closes: #227361)  [kohda]
Files: 
 a91974c1e07fa9a3e073c04fce77a46d 990 tex optional tetex-bin_2.0.2-6.dsc
 6005bec7e05ac6a5ee4da6572228228b 67940 tex optional tetex-bin_2.0.2-6.diff.gz
 b93950d71afdff87651bf440843df311 3897082 tex optional tetex-bin_2.0.2-6_i386.deb
 5afa1a079357079ea983aa7c382bcafe 52316 libs optional libkpathsea3_2.0.2-6_i386.deb
 78ec9078933f9d914d2bd28bba62c6ae 66252 libdevel optional libkpathsea-dev_2.0.2-6_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFADG1D1IXdL1v6kOwRAukcAJ48CJ9SUGV997/2vEZ9hxzClL93CgCfQUIH
gPEIxJRWAJ0Whxfp31OwpsM=
=FJ6C
-----END PGP SIGNATURE-----



Reply to: