[BusyBox 0003634]: dpkg -r crashes if no conffiles

bugs at busybox.net bugs at busybox.net
Sun Jun 22 13:55:02 UTC 2008


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=3634 
====================================================================== 
Reported By:                wz2b
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   3634
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             06-04-2008 21:03 PDT
Last Modified:              06-22-2008 06:55 PDT
====================================================================== 
Summary:                    dpkg -r crashes if no conffiles
Description: 
If attempting to remove a debian package that has no conffiles in its
DEBIAN subdirectory, busybox attempts to move the conffiles anyway and
fails.  Suggest that if conffiles isn't there, don't fail - just ignore
it.


====================================================================== 

---------------------------------------------------------------------- 
 vda - 06-21-08 15:59  
---------------------------------------------------------------------- 
I don't see where it dies in this case. I have no debian packages to play
with.
Can you pinpoint where it fails?

I see only two renames which can result in dpkg aborting,
none of these linked to conffiles:

static void write_status_file(deb_file_t **deb_file)
{
...
        /* Create a separate backfile to dpkg */
        if (rename("/var/lib/dpkg/status",
"/var/lib/dpkg/status.udeb.bak") == -1) {
                if (errno != ENOENT)
                        bb_error_msg_and_die("cannot create backup status
file");
                /* Its ok if renaming the status file fails because
status
                 * file doesnt exist, maybe we are starting from scratch
*/
                bb_error_msg("no status file found, creating new one");
        }

        xrename("/var/lib/dpkg/status.udeb", "/var/lib/dpkg/status");
} 

---------------------------------------------------------------------- 
 vda - 06-22-08 06:55  
---------------------------------------------------------------------- 
fix is committed to svn by Bernhard Fischer 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-04-08 21:03  wz2b           New Issue                                    
06-04-08 21:03  wz2b           Status                   new => assigned     
06-04-08 21:03  wz2b           Assigned To               => BusyBox         
06-21-08 15:59  vda            Note Added: 0008414                          
06-22-08 06:55  vda            Status                   assigned => closed  
06-22-08 06:55  vda            Note Added: 0008424                          
======================================================================




More information about the busybox-cvs mailing list