Skip to content

CFE-3882: Added date binary inside cfengine - #2450

Open
victormlg wants to merge 1 commit into
cfengine:masterfrom
victormlg:parsedate
Open

CFE-3882: Added date binary inside cfengine#2450
victormlg wants to merge 1 commit into
cfengine:masterfrom
victormlg:parsedate

Conversation

@victormlg

@victormlg victormlg commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@victormlg victormlg changed the title Back CFE-3882: Added date binary inside cfengine CFE-3882: Added date binary inside cfengine Aug 21, 2026
@cf-bottom

Copy link
Copy Markdown

Thanks for submitting a PR! Maybe @craigcomstock can review this?

Added /var/cfengine/bin/date from coreutils, in a similar way to diff, to be able to parse date and time

Signed-off-by: Victor Moene <victor.moene@northern.tech>

@nickanderson nickanderson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, though I still wish we didn't have to exec out

* POSIX user database and does not ship this header at all.
*
* Several coreutils lib source files (idcache.c, userspec.c, ...)
* unconditionally include <pwd.h>, even though the functionality it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The proper fix would be to patch the source to not include these unconditionally. If the assertion is wrong, that would surface this during compile time, instead of hiding it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants