337 | | if (errno != ENOTDIR) ohshite(_("cannot remove `%.250s'"),fnvb.buf); |
| 337 | if (errno != ENOTDIR) { |
| 338 | /* XXX Hack: |
| 339 | * dpkg includes /. in the packing list. |
| 340 | * rmdir("/.") will return EINVAL. dpkg will |
| 341 | * only attempt to remove /. when uninstalling |
| 342 | * the last package on the system, which is why |
| 343 | * Debian has never run into this issue. */ |
| 344 | if (errno == EINVAL && strcmp(fnvb.buf, "/.") == 0) |
| 345 | continue; |
| 346 | else |
| 347 | ohshite(_("cannot remove `%.250s'"),fnvb.buf); |
| 348 | } |
428 | | if (errno != ENOTDIR) ohshite(_("cannot remove `%.250s'"),fnvb.buf); |
| 439 | if (errno != ENOTDIR) { |
| 440 | /* XXX Hack: |
| 441 | * dpkg includes /. in the packing list. |
| 442 | * rmdir("/.") will return EINVAL. dpkg will |
| 443 | * only attempt to remove /. when uninstalling |
| 444 | * the last package on the system, which is why |
| 445 | * Debian has never run into this issue. */ |
| 446 | if (errno == EINVAL && strcmp(fnvb.buf, "/.") == 0) |
| 447 | continue; |
| 448 | else |
| 449 | ohshite(_("cannot remove `%.250s'"),fnvb.buf); |
| 450 | } |