1
0
Fork 0

make the program return with exit code 1 if not root

This commit is contained in:
Kim, Jimin 2025-06-03 18:37:47 +09:00
parent 5e3fe91ead
commit c47cd51dae
Signed by: pomp
GPG key ID: D3932F82A0667A3B
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

Before After
Before After

View file

@ -10,7 +10,7 @@ fn main() {
let euid = unsafe { geteuid() };
if uid != 0 || euid != 0 {
return;
std::process::exit(1);
}
println!("░█████╗░██╗░░██╗██╗░░██╗██╗░░██╗██╗░░██╗██╗██╗██╗");