Skip to content

bug(split): split -a 1 creates empty file before something is written to stdin #12934

Description

@HackingRepo

Hi, uutils mainteners

our testing confirmed

relunsec@relunsec:~/software/coreutils/target/debug$ ./split -a 255
split: unable to open 'xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'; aborting
relunsec@relunsec:~/software/coreutils/target/debug$ 

it fails in the open process after 255 and no errors reported, the gnu one not errors out

relunsec@relunsec:~/software/coreutils/target/debug$ gnusplit -a 255

and no errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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