mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +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);
|
_warning(1, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
cleanup(0);
|
cleanup(0);
|
||||||
siglongjmp(error_jmp, 1);
|
siglongjmp(error_jmp, eval);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -52,7 +52,7 @@ errorx(int eval, const char *fmt, ...)
|
|||||||
_warning(0, fmt, ap);
|
_warning(0, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
cleanup(0);
|
cleanup(0);
|
||||||
siglongjmp(error_jmp, 1);
|
siglongjmp(error_jmp, eval);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user