Skip to content

bug: base32 and base64 incorrect error messages when appending to a regular file / #12670

Description

@HackingRepo

Hi, uutils mainteners

to reproduce that incorrect error messages behavior you need do simply

relunsec@relunsec:~/software/coreutils/target/debug$ ./base32 a/
base32: a/: No such file or directory

the same with base64

relunsec@relunsec:~/software/coreutils/target/debug$ ./base64 a/
base64: a/: No such file or directory

as i see the gnu version displays the correct error message

relunsec@relunsec:~/software/coreutils/target/debug$ gnubase32 a/
gnubase32: a/: Not a directory
relunsec@relunsec:~/software/coreutils/target/debug$ gnubase64 a/
gnubase64: a/: Not a directory
relunsec@relunsec:~/software/coreutils/target/debug$ 

a in that case is a regular file appending, / to it cause a non such file or directory instead of the expected not a directory error message

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions