Public bug reported:
Ubuntu 25.10 Questing came with this rust coreutils "date" command
version:
$ date -V
date (uutils coreutils) 0.2.2
Problem is that the command "date -r file", that will return the last
modification time of the given file, is returning a wrong date, in fact,
is returning the current date:
Example given, this file "/usr/bin/bash":
-rwxr-xr-x 1 root root 1608840 Sep 8 15:20 /usr/bin/bash*
The command "date -r /usr/bin/bash" correct return will be:
Mon Sep 8 15:20:42 CEST 2025
But instead of that rust coreutils returns the current date:
$ /usr/bin/date -r /usr/bin/bash
Thu Oct 16 10:18:41 CEST 2025
The gnu coreutils works as expected and returns the last modification
date of the file given:
$ /usr/bin/gnudate -r /usr/bin/bash
Mon Sep 8 15:20:42 CEST 2025
IMHO this is a very urgent to fix bug. We've noticed it because a couple
of our monitor script started to act weird triggering date warnings for
files that were untouched.
** Affects: coreutils-from (Ubuntu)
Importance: Undecided
Status: New
** Affects: rust-coreutils (Ubuntu)
Importance: Undecided
Status: New
** Tags: coreutils date rust
** Also affects: coreutils-from (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Ubuntu 25.10 Questing came with this rust coreutils "date" command
version:
$ date -V
date (uutils coreutils) 0.2.2
Problem is that the command "date -r file", that will return the last
modification time of the given file, is returning a wrong date, in fact,
- the current date:
+ is returning the current date:
Example given, this file "/usr/bin/bash":
-rwxr-xr-x 1 root root 1608840 Sep 8 15:20 /usr/bin/bash*
The command "date -r /usr/bin/bash" correct return will be:
Mon Sep 8 15:20:42 CEST 2025
But instead of that rust coreutils returns the current date:
$ /usr/bin/date -r /usr/bin/bash
Thu Oct 16 10:18:41 CEST 2025
The gnu coreutils works as expected and returns the last modification
date of the file given:
$ /usr/bin/gnudate -r /usr/bin/bash
Mon Sep 8 15:20:42 CEST 2025
IMHO this is a very urgent to fix bug. We've noticed it because a couple
of our monitor script started to act weird triggering date warnings for
files that were untouched.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2127970
Title:
[Ubuntu 25.10 Questing] rust coreutils "date -r file" returns a wrong
date
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils-from/+bug/2127970/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs