Skip to content

https wget will not display correct error message if /dev/null does not exist #5

Description

@tbodt

busybox/networking/wget.c

Lines 718 to 719 in a07fead

xmove_fd(2, 3);
xopen("/dev/null", O_RDWR);

If an error occurs opening /dev/null on the second line, it will be written to stderr, but the first line just moved stderr to fd 3, so no message will appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions