Post #4367181
2026-08-03 04:49 UTC
// Additional sanity checks: we're about to rm -rf /, so be REALLY SURE we mean it. I could make this a CONFIG option, but I would get email from all the people who WILL destroy their filesystems.
if (stat("/init", &st) != 0 || !S_ISREG(st.st_mode)) {
bb_error_msg_and_die("/init is not a regular file");
}:blobcatlul:
Replies (0)
No replies.