Debian Bug report logs - #497972
rancid-core: temp directories are left in /tmp

version graph

Package: rancid-core; Maintainer for rancid-core is (unknown);

Reported by: "Deny IP Any Any" <denyipanyany@gmail.com>

Date: Fri, 5 Sep 2008 19:21:08 UTC

Severity: normal

Tags: patch

Merged with 500025

Found in versions 2.3.2~a8-2~bc.1, rancid/2.3.2~a8-2

Fixed in version rancid/2.3.2~a8-3

Done: Roland Rosenfeld <roland@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Roland Rosenfeld <roland@debian.org>:
Bug#497972; Package rancid-core. Full text and rfc822 format available.

Acknowledgement sent to "Deny IP Any Any" <denyipanyany@gmail.com>:
New Bug report received and forwarded. Copy sent to Roland Rosenfeld <roland@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Deny IP Any Any" <denyipanyany@gmail.com>
To: submit@bugs.debian.org
Subject: rancid-core: temp directories are left in /tmp
Date: Fri, 5 Sep 2008 15:20:40 -0400
Package: rancid-core
Version: 2.3.2~a8-2
Severity: normal

Starting with rancid 2.3.2~a8-2, the temp directory created during a
rancid run are remaining in the /tmp directory. The rancid log files
show:

rm: cannot remove `/tmp/tmp.RYaKjejbmy': Is a directory

So it appears there is an 'rm' call somewhere without the appropriate
flags. I do not remember seeing this with 2.3.2~a8-1.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26.3 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages rancid-core depends on:
ii  adduser                     3.110        add and remove users and groups
ii  cvs                         1:1.12.13-11 Concurrent Versions System
ii  debconf [debconf-2.0]       1.5.22       Debian configuration management sy
ii  expect                      5.43.0-17    A program that can automate intera
ii  iputils-ping [ping]         3:20071127-1 Tools to test the reachability of
ii  libc6                       2.7-13       GNU C Library: Shared libraries
ii  openssh-client              1:5.1p1-2    secure shell client, an rlogin/rsh
ii  passwd                      1:4.1.1-3    change and administer password and
ii  perl                        5.10.0-13    Larry Wall's Practical Extraction
ii  ssh                         1:5.1p1-2    secure shell client and server (me

rancid-core recommends no packages.

Versions of packages rancid-core suggests:
ii  diffstat                      1.45-2     produces graph of changes introduc

-- debconf information:
* rancid/damn_upgrade:
* rancid/warning:
* rancid/go_on: true




Information forwarded to debian-bugs-dist@lists.debian.org, Roland Rosenfeld <roland@debian.org>:
Bug#497972; Package rancid-core. Full text and rfc822 format available.

Acknowledgement sent to Bjørn Mork <bjorn@mork.no>:
Extra info received and forwarded to list. Copy sent to Roland Rosenfeld <roland@debian.org>. Full text and rfc822 format available.

Message #10 received at 497972@bugs.debian.org (full text, mbox, reply):

From: Bjørn Mork <bjorn@mork.no>
To: Debian Bug Tracking System <497972@bugs.debian.org>
Subject: rancid-core: 'r' is missing from the final cleanup in control_rancid
Date: Fri, 12 Sep 2008 10:41:18 +0200
[Message part 1 (text/plain, inline)]
Package: rancid-core
Version: 2.3.2~a8-2
Followup-For: Bug #497972

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


Problem:

bjorn@canardo:~$ ls -ltr /tmp/|grep rancid|tail
drwx------ 2 rancid   users          60 2008-09-12 01:05 tmp.YJRKEOUCQZ
drwx------ 2 rancid   users          60 2008-09-12 02:05 tmp.UzxcceuFyC
drwx------ 2 rancid   users          60 2008-09-12 03:05 tmp.MWzeBzhUGm
drwx------ 2 rancid   users          60 2008-09-12 04:05 tmp.fqjHzHIvhB
drwx------ 2 rancid   users          60 2008-09-12 05:05 tmp.bzqDiYoBcP
drwx------ 2 rancid   users          60 2008-09-12 06:05 tmp.LrTEDUCqbn
drwx------ 2 rancid   users          60 2008-09-12 07:05 tmp.FovoyxgsBn
drwx------ 2 rancid   users          60 2008-09-12 08:05 tmp.QBJnDmoRpB
drwx------ 2 rancid   users          60 2008-09-12 09:05 tmp.LpkFNddNid
drwx------ 2 rancid   users          60 2008-09-12 10:05 tmp.LPmPcRGUWb

This is caused by 'r' missing from the final cleanup in control_rancid:

bjorn@canardo:~$ tail /usr/lib/rancid/bin/control_rancid
          echo "The following routers have not been successfully
contacted for"
          echo "more than $OLDTIME hours."

          cat $DIR/routers.failed
        ) | sendmail -t
fi

# Cleanup
rm -f $MYTMPDIR $DIR/routers.single $DIR/routers.failed
trap '' 1 2 15


I'm attaching an updated 06_tmp_security.dpatch with the simple single-
character fix for this :-)


Bjorn

- -- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (700, 'testing'), (650, 'stable'), (600, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rancid-core depends on:
ii  adduser                     3.110        add and remove users and groups
ii  cvs                         1:1.12.13-11 Concurrent Versions System
ii  debconf [debconf-2.0]       1.5.22       Debian configuration management sy
ii  expect                      5.43.0-17    A program that can automate intera
ii  iputils-ping [ping]         3:20071127-1 Tools to test the reachability of 
ii  libc6                       2.7-13       GNU C Library: Shared libraries
ii  openssh-client              1:5.1p1-2    secure shell client, an rlogin/rsh
ii  passwd                      1:4.1.1-3    change and administer password and
ii  perl                        5.10.0-13    Larry Wall's Practical Extraction 
ii  ssh                         1:5.1p1-2    secure shell client and server (me
ii  subversion                  1.5.1dfsg1-1 Advanced version control system

rancid-core recommends no packages.

Versions of packages rancid-core suggests:
ii  diffstat                      1.45-2     produces graph of changes introduc

- -- debconf information:
* rancid/damn_upgrade:
* rancid/warning:
* rancid/go_on: false

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

iEYEARECAAYFAkjKKywACgkQ10rqkowbIsk6QQCfTTx1LFdMnlLGv2X9NK5Yb3CJ
umwAoJINJSLkfU3/5W3Tt/SfZ9muKUb9
=W2M+
-----END PGP SIGNATURE-----
[06_tmp_security.dpatch (text/x-shellscript, attachment)]

Merged 497972 500025. Request was from Roland Rosenfeld <roland@debian.org> to control@bugs.debian.org. (Wed, 24 Sep 2008 18:54:04 GMT) Full text and rfc822 format available.

Bug no longer marked as found in version 2.3.2~a8-1. Request was from Roland Rosenfeld <roland@debian.org> to control@bugs.debian.org. (Wed, 24 Sep 2008 19:03:08 GMT) Full text and rfc822 format available.

Bug marked as found in version 2.3.2~a8-2. Request was from Roland Rosenfeld <roland@debian.org> to control@bugs.debian.org. (Wed, 24 Sep 2008 19:03:10 GMT) Full text and rfc822 format available.

Reply sent to Roland Rosenfeld <roland@debian.org>:
You have taken responsibility. (Wed, 24 Sep 2008 19:30:03 GMT) Full text and rfc822 format available.

Notification sent to "Deny IP Any Any" <denyipanyany@gmail.com>:
Bug acknowledged by developer. (Wed, 24 Sep 2008 19:30:03 GMT) Full text and rfc822 format available.

Message #21 received at 497972-close@bugs.debian.org (full text, mbox, reply):

From: Roland Rosenfeld <roland@debian.org>
To: 497972-close@bugs.debian.org
Subject: Bug#497972: fixed in rancid 2.3.2~a8-3
Date: Wed, 24 Sep 2008 19:02:03 +0000
Source: rancid
Source-Version: 2.3.2~a8-3

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

rancid-cgi_2.3.2~a8-3_all.deb
  to pool/main/r/rancid/rancid-cgi_2.3.2~a8-3_all.deb
rancid-core_2.3.2~a8-3_amd64.deb
  to pool/main/r/rancid/rancid-core_2.3.2~a8-3_amd64.deb
rancid-util_2.3.2~a8-3_all.deb
  to pool/main/r/rancid/rancid-util_2.3.2~a8-3_all.deb
rancid_2.3.2~a8-3.diff.gz
  to pool/main/r/rancid/rancid_2.3.2~a8-3.diff.gz
rancid_2.3.2~a8-3.dsc
  to pool/main/r/rancid/rancid_2.3.2~a8-3.dsc



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 497972@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Roland Rosenfeld <roland@debian.org> (supplier of updated rancid 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.8
Date: Wed, 24 Sep 2008 20:56:11 +0200
Source: rancid
Binary: rancid-core rancid-util rancid-cgi
Architecture: source all amd64
Version: 2.3.2~a8-3
Distribution: unstable
Urgency: low
Maintainer: Roland Rosenfeld <roland@debian.org>
Changed-By: Roland Rosenfeld <roland@debian.org>
Description: 
 rancid-cgi - CGI for rancid
 rancid-core - rancid -- Really Awesome New Cisco confIg Differ
 rancid-util - Utilities for rancid
Closes: 497972 500025
Changes: 
 rancid (2.3.2~a8-3) unstable; urgency=low
 .
   * 06_tmp_security.dpatch: remove temporary directory recursively.  This
     bug was introduced with the previous security fix
     (Closes: #497972, #500025).
Checksums-Sha1: 
 1738e55d14af9e79448036cf06d3d6906cd2eaf3 1151 rancid_2.3.2~a8-3.dsc
 8836da4130d570bc0d24000c7e712cfbd7544aaa 23052 rancid_2.3.2~a8-3.diff.gz
 16a1b527fad6c6f153174ebe2215e4e42cb3d67a 46044 rancid-util_2.3.2~a8-3_all.deb
 f5de25468c8bb2383638a313364ed8c05afc41f1 46862 rancid-cgi_2.3.2~a8-3_all.deb
 998cb6c8d56ac5e5684029fdf95aa44ff4606b2c 204960 rancid-core_2.3.2~a8-3_amd64.deb
Checksums-Sha256: 
 09e54d130929cca17ab121cdf46434647ce8a75c9ef24c748fd4b20d86fd577a 1151 rancid_2.3.2~a8-3.dsc
 9e3f6ca41f07acc9a10668ef106263d7c335d6f44e57e6362bbbe924eb31c23b 23052 rancid_2.3.2~a8-3.diff.gz
 2d4188198d81cf951ccfea6b657fb1bc806a2224689e9edc5df56d7274486123 46044 rancid-util_2.3.2~a8-3_all.deb
 4884c9e48c2efc73d30d7f6206e32b66ca0fc0cbeffaa743afe7502a16d13792 46862 rancid-cgi_2.3.2~a8-3_all.deb
 d289d550e075a1aee76af3727555062522da8a22393da02d7cf4a584c767488d 204960 rancid-core_2.3.2~a8-3_amd64.deb
Files: 
 bde8dcccb3d32437ef221a33644d6cbf 1151 net optional rancid_2.3.2~a8-3.dsc
 fb2e4372524d9affba8b49c3fa96ab44 23052 net optional rancid_2.3.2~a8-3.diff.gz
 1d9565f2204f01602590d43a0ead592f 46044 net optional rancid-util_2.3.2~a8-3_all.deb
 5ce770ff1075be1b3364087e2e972076 46862 net optional rancid-cgi_2.3.2~a8-3_all.deb
 65aaa2a35275c465038fe8ab9674fe60 204960 net optional rancid-core_2.3.2~a8-3_amd64.deb

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

iEYEARECAAYFAkjajcwACgkQO7/Pd72LBQ1zugCeIf2lYT69WQeo77t/KnIUMOMM
UZIAoKWQ5i1FIWwYAzwDSlcSQ5Qo73BZ
=Rjc8
-----END PGP SIGNATURE-----





Reply sent to Roland Rosenfeld <roland@debian.org>:
You have taken responsibility. (Wed, 24 Sep 2008 19:30:04 GMT) Full text and rfc822 format available.

Notification sent to Karsten Heymann <kheymann@blue-cable.net>:
Bug acknowledged by developer. (Wed, 24 Sep 2008 19:30:04 GMT) Full text and rfc822 format available.

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 30 Nov 2008 07:47:29 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Aug 10 22:42:59 2016; Machine Name: beach

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.