mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 05:17:54 +00:00
Exit() takes a negative value to indicate it was not called via signal.
This commit is contained in:
parent
abc7ac8eef
commit
1e65afba3d
6
visudo.c
6
visudo.c
@ -238,7 +238,7 @@ main(argc, argv)
|
||||
if (!sp->modified)
|
||||
(void) unlink(sp->tpath);
|
||||
else
|
||||
install_sudoers(sp); /* XXX rval */
|
||||
(void) install_sudoers(sp);
|
||||
}
|
||||
|
||||
exit(0);
|
||||
@ -902,7 +902,7 @@ Err(eval, fmt, va_alist)
|
||||
#endif
|
||||
vwarn(fmt, ap);
|
||||
va_end(ap);
|
||||
Exit(eval);
|
||||
Exit(-eval);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -926,7 +926,7 @@ Errx(eval, fmt, va_alist)
|
||||
#endif
|
||||
vwarnx(fmt, ap);
|
||||
va_end(ap);
|
||||
Exit(eval);
|
||||
Exit(-eval);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user