Package: libapt-front-dev
Version: 0.3.10
Severity: important
Tags: patch

debtags-edit crashes when saving a debtags patch (see
#391575: debtags-edit: Crash when saving the diff). Its caused
by an bug in packagetags.cpp, see attached patch.
Set to "important" because it makes debtags-edit basically
unusable and could cause some frustration if users
edit tags and then loose their work.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.4
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages libapt-front-dev depends on:
ii  libapt-pkg-dev                0.6.46.1   Development files for APT's libapt
ii  libtagcoll-dev                1.6.3-1    Functions used to manipulate tagge

Versions of packages libapt-front-dev recommends:
ii  pkg-config                    0.21-1     manage compile and link flags for 

-- no debconf information
--- libapt-front-0.3.11/apt-front/cache/component/packagetags.cpp       
2006-10-04 14:18:59.000000000 +0200
+++ libapt-front-0.3.11.new/apt-front/cache/component/packagetags.cpp   
2006-10-12 14:31:44.000000000 +0200
@@ -129,7 +129,7 @@
        string patchFile = rcdir + "/patch";
        string backup = patchFile + "~";
 
-       if (access(patchFile.c_str(), F_OK))
+       if (access(patchFile.c_str(), F_OK) == 0)
                if (rename(patchFile.c_str(), backup.c_str()) == -1)
                        throw SystemException(errno, "Can't rename " + 
patchFile + " to " + backup);
 

Reply via email to