[Bug 2142588] Re: date: gnu date allows options after format
Andreas Hasenack
2142588 at bugs.launchpad.net
Mon Mar 9 18:28:21 UTC 2026
Another occurance of this was found in samba, when ucf was triggered in
postinst[1].
Reproducer:
$ date +"%F %T" --date @1773079891
date: extra operand '--date'
In questing, with rust-coreutils 0.2.2-0ubuntu2.1:
$ date +"%F %T" --date @1773079891
2026-03-09 15:11:31
1. https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2143699
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2142588
Title:
date: gnu date allows options after format
Status in rust-coreutils:
Fix Released
Status in aide package in Ubuntu:
Confirmed
Status in libtpms package in Ubuntu:
Fix Released
Status in rust-coreutils package in Ubuntu:
In Progress
Status in strace package in Ubuntu:
In Progress
Bug description:
found with installs and tests for `aide`. From upstream, likely
affects `strace` as well. Already committed upstream, so awaiting
release > 0.6.0
from upstream bug
https://github.com/uutils/coreutils/issues/10972
date (uutils coreutils) 0.6.0 on Ubuntu 26.04
date -u -d 'Mon Feb 16 09:21:27 UTC 2026' '+%Y-%m-%d'
2026-02-16
date -u '+%Y-%m-%d' -d 'Mon Feb 16 09:21:27 UTC 2026'
date: extra operand '-d'
GNU coreutils Packaged by Ubuntu (9.7-3ubuntu1)
gnudate -u +%Y-%m-%d -d 'Mon Feb 16 09:21:27 UTC 2026'
2026-02-16
Noticed it because strace autoconfig script failed.
date: extra operand '-d'
./build-aux/file-date-gen: Invalid date: 2023-11-21
configure.ac:21: error: assert failed: 1 == 0
aclocal.m4:2405: st_esyscmd_s is expanded from...
configure.ac:21: the top level
autom4te: error: m4 failed with exit status: 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/rust-coreutils/+bug/2142588/+subscriptions
More information about the foundations-bugs
mailing list