BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003634 [BusyBox] Other minor always 06-04-08 21:03 06-22-08 06:55
Reporter wz2b View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0003634: 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.

Additional Information 1.10.3

Attached Files

- Relationships

- Notes
(0008414)
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");
}
 
(0008424)
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
06-22-08 06:55 vda Resolution open => fixed
06-23-08 09:13 wz2b Issue Monitored: wz2b


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker