Skip to content

bug(date): when using -f which a file contains "j" or "9j" or any miliatry time that ends with j, it rejected #12893

@HackingRepo

Description

@HackingRepo

Hi, uutils mainteners

that was a big issue undiscovered in the date command, i discovered when putting a miliatry date in dates.txt file by example
will be rejected which normally accepted with -d 9j or -d j directly

relunsec@relunsec:~/software/coreutils/target/debug$ echo "9j" > dates.txt
relunsec@relunsec:~/software/coreutils/target/debug$ ./date -f dates.txt 
date: invalid date '9j'
relunsec@relunsec:~/software/coreutils/target/debug$ echo "j" > dates.txt
relunsec@relunsec:~/software/coreutils/target/debug$ ./date -f dates.txt 
date: invalid date 'j'
relunsec@relunsec:~/software/coreutils/target/debug$ 

it needs to be fixed, that is the issue left undiscovered for years

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions