Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939404 - sys-apps/busybox: consider disabling FEATURE_NON_POSIX_CP
Summary: sys-apps/busybox: consider disabling FEATURE_NON_POSIX_CP
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-09-10 02:09 UTC by kfm
Modified: 2024-09-10 02:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sys-apps-busybox-1.36.1-r4-disable-FEATURE_NON_POSIX.patch (0001-sys-apps-busybox-1.36.1-r4-disable-FEATURE_NON_POSIX.patch,14.48 KB, patch)
2024-09-10 02:09 UTC, kfm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kfm 2024-09-10 02:09:47 UTC
Created attachment 902502 [details, diff]
sys-apps-busybox-1.36.1-r4-disable-FEATURE_NON_POSIX.patch

By default, busybox enables the FEATURE_NON_POSIX_CP option. As is implied by its name, it results in some rather flagrant POSIX violations. In particular, it causes for the destination file to be unlinked in the case that it already exists, losing the mode, access time, birth time and other attributes borne by the original inode.

I think that this option should be disabled by the ebuild. The commit message of the attached patch presents my case in further detail.