← Commit list

43a668b2e

Kevin Cernekee
Kevin Cernekee
2011-07-13
FAILED Duration: 219s

Subject

cttyhack: fail gracefully if the device node is missing

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/cttyhack.c+3 -1
@@ -146,7 +146,9 @@ int cttyhack_main(int argc UNUSED_PARAM, char **argv)
goto ret;
} while (0);
- fd = xopen(console, O_RDWR);
+ fd = open_or_warn(console, O_RDWR);
+ if (fd < 0)
+ goto ret;
//bb_error_msg("switching to '%s'", console);
dup2(fd, 0);
dup2(fd, 1);