Sandbox option breaks on extraction of precise gnat-gps and gnat-gps-common
Bug #1059621 reported by
Evan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
gnat-gps (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
To test:
mkdir -p /tmp/foo
dpkg -x gnat-gps-
dpkg -x gnat-gps_*.deb /tmp/foo
This should not produce:
tar: ./usr/share/
Original report follows:
In apport-retrace with the --sandbox option set, if gnat-gps-
tar: ./usr/share/
description: | updated |
Changed in apport (Ubuntu): | |
status: | New → Invalid |
no longer affects: | apport (Ubuntu Precise) |
Changed in gnat-gps (Ubuntu Precise): | |
status: | New → Fix Committed |
To post a comment you must log in.
From the dpkg source: symlink: stab.st_ mode)) { dbg_eachfiledet ail, "tarobject symlink exists as directory"); stab.st_ mode)) { tingdir( ti, fnamevb.buf, &symlinkfn))
/* Check to see if it's a directory or link to one and we don't need to
* do anything. This has to be done now so that we don't die due to
* a file overwriting conflict. */
existingdir = false;
switch (ti->type) {
case tar_filetype_
/* If it's already an existing directory, do nothing. */
if (!statr && S_ISDIR(
debug(
existingdir = true;
} else if (!statr && S_ISLNK(
if (linktosameexis
existingdir = true;
} ...