Skip to content

minorbug(csplit): when the current cwd removed it returns vague error messages #12969

@HackingRepo

Description

@HackingRepo

Hi, uutils mainteners

that issue to be triggered you need 2 terminals,

in the 1st terminal the first step is

$ mkdir z
$ cd z

then go back to the first terminal and then type the following command

relunsec@relunsec:~/software/coreutils/target/debug$ rm -rf z

back to the second terminal and then type ./csplit as i see the error too vague

relunsec@relunsec:~/software/coreutils/target/debug/z$ ../csplit . '/^ERROR^/'
csplit: IO error: No such file or directory (os error 2)

it is correct but it just show an IO ERROR not when originated whiches vague

relunsec@relunsec:~/software/coreutils/target/debug/z$ gnucsplit . '/^ERROR^/'
gnucsplit: xx00: No such file or directory
relunsec@relunsec:~/software/coreutils/target/debug/z$ 

Metadata

Metadata

Assignees

No one assigned

    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