Your message dated Thu, 23 Aug 2012 01:47:38 +0000
with message-id <[email protected]>
and subject line Bug#685352: fixed in duplicity 0.6.18-3
has caused the Debian Bug report #685352,
regarding duplicity: follows symlink to check for file specified with 
--exclude-if-present
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
685352: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685352
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: duplicity
Version: 0.6.18-2
Severity: normal

My firefox profile directory is a symlink to an encfs mount point:

 [23+0]~$ ls -l .mozilla/firefox/
total 8
drwxr-xr-x 5 itz itz 4096 Jul 21 23:00 failsafe
lrwxrwxrwx 1 itz itz   29 Feb 18  2012 firefox-profile -> 
../../Private/firefox-profile
-rw-r--r-- 1 itz itz  167 Jun  1 17:45 profiles.ini
 [24+0]~$ mount | grep encfs
encfs on /home/itz/Private/firefox-profile type fuse.encfs 
(rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions)

encfs is a fuse based filesystem, so that means everything under
firefox-profile is inaccessible to other users, including root.

When I give the --exclude-if-present option to duplicity, it tries to
locate that file underneath the symlink, even if
--exclude-other-filesystems is given as well.  Leading to disaster:

 [110+0]~# duplicity --encrypt-key C6FF61AD --use-agent 
--exclude-other-filesystems --exclude-if-present .nobup --name 
'matica!home!itz' /home/itz ssh://foolinux.lan/duplicity
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
No signatures found, switching to full backup.
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1404, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1397, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1372, in main
    full_backup(col_stats)
  File "/usr/bin/duplicity", line 502, in full_backup
    globals.backend)
  File "/usr/bin/duplicity", line 380, in write_multivol
    globals.gpg_profile, globals.volsize)
  File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 320, in 
GPGWriteFile
    data = block_iter.next(min(block_size, bytes_to_go)).data
  File "/usr/lib/python2.7/dist-packages/duplicity/diffdir.py", line 507, in 
next
    result = self.process(self.input_iter.next(), size)
  File "/usr/lib/python2.7/dist-packages/duplicity/diffdir.py", line 188, in 
get_delta_iter
    for new_path, sig_path in collated:
  File "/usr/lib/python2.7/dist-packages/duplicity/diffdir.py", line 281, in 
collate2iters
    for relem1 in riter1:
  File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 175, in 
Iterate
    subpath, val = diryield_stack[-1].next()
  File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 155, in 
diryield
    s = self.Select(new_path)
  File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 209, in 
Select
    result = sf(path)
  File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 509, in 
exclude_sel_func
    if path.append(filename).exists():
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 516, in append
    return self.__class__(self.base, self.index + (ext,))
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 496, in 
__init__
    self.setdata()
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 501, in 
setdata
    self.stat = os.lstat(self.name)
OSError: [Errno 13] Permission denied: 
'/home/itz/.mozilla/firefox/firefox-profile/.nobup'

duplicity should only check for the presence of --exclude-if-present
file under real directories, and not under symlinks to directories.  It
should also skip this check if --exclude-other-filesystems is given as
well and the directory is a mountpoint.

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

Kernel: Linux 3.4.9-custom (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages duplicity depends on:
ii  libc6                  2.13-33
ii  librsync1              0.9.7-9
ii  python                 2.7.3~rc2-1
ii  python-gnupginterface  0.3.2-9.1
ii  python2.7              2.7.3~rc2-2.1

Versions of packages duplicity recommends:
ii  python-paramiko  1.7.7.1-3
ii  rsync            3.0.9-3

Versions of packages duplicity suggests:
ii  lftp               4.3.6-1
ii  ncftp              2:3.2.5-1.1
pn  python-boto        <none>
pn  python-cloudfiles  <none>
pn  python-gdata       <none>
ii  python-pexpect     2.4-1
pn  tahoe-lafs         <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: duplicity
Source-Version: 0.6.18-3

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

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexander Zangerl <[email protected]> (supplier of updated duplicity 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 23 Aug 2012 11:17:57 +1000
Source: duplicity
Binary: duplicity
Architecture: source i386
Version: 0.6.18-3
Distribution: unstable
Urgency: low
Maintainer: Alexander Zangerl <[email protected]>
Changed-By: Alexander Zangerl <[email protected]>
Description: 
 duplicity  - encrypted bandwidth-efficient backup
Closes: 685352
Changes: 
 duplicity (0.6.18-3) unstable; urgency=low
 .
   * repaired duplicity's symlink handling for --exclude-if-present
     (closes: #685352)
Checksums-Sha1: 
 8b4d7b2535b0a6f2e6166c63f252f7777a380746 1115 duplicity_0.6.18-3.dsc
 bbaee7ae2f48f6193e85f0a2a6541bab9946225d 15900 duplicity_0.6.18-3.diff.gz
 f139e8fdc8f0d1ee558353132af3472fbc2a511f 306710 duplicity_0.6.18-3_i386.deb
Checksums-Sha256: 
 40f173de8b2bead5ab0ca90afcb54db69834e5d558e2c68b6991f123106f4d35 1115 
duplicity_0.6.18-3.dsc
 f0d82301aeb37e972942678747b116df1662712e47c6a231dc15fa9217da7a1d 15900 
duplicity_0.6.18-3.diff.gz
 07ea065fcd2b418ffb128c4182ee8e50f1db916bd6c688d6e65a7fa4281507aa 306710 
duplicity_0.6.18-3_i386.deb
Files: 
 9f5654f1d12c1d19cb624d572a55a25a 1115 utils optional duplicity_0.6.18-3.dsc
 ccd6d76084bccbd16ebef5e59524abc7 15900 utils optional 
duplicity_0.6.18-3.diff.gz
 9fa366f21e5020676786b9494a1c7795 306710 utils optional 
duplicity_0.6.18-3_i386.deb

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

iF4EAREIAAYFAlA1iHkACgkQ+bKELRvb2DymcwEA2enDkXcAygg56+KfqkUp6Of7
vJs5B2XFOsO9De4FTT8BAMQx6Qs5sfxe/OSjbm60rWVh0w3Fq+7nEvDxU6kC8OhY
=CQ5/
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to