mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Pass the error value back via siglongjmp.
This commit is contained in:
parent
51c55cd487
commit
0d8159fa2f
@ -41,7 +41,7 @@ error(int eval, const char *fmt, ...)
|
||||
_warning(1, fmt, ap);
|
||||
va_end(ap);
|
||||
cleanup(0);
|
||||
siglongjmp(error_jmp, 1);
|
||||
siglongjmp(error_jmp, eval);
|
||||
}
|
||||
|
||||
void
|
||||
@ -52,7 +52,7 @@ errorx(int eval, const char *fmt, ...)
|
||||
_warning(0, fmt, ap);
|
||||
va_end(ap);
|
||||
cleanup(0);
|
||||
siglongjmp(error_jmp, 1);
|
||||
siglongjmp(error_jmp, eval);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user