mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +00:00
printf() returns < 0 on error, not explicitly -1
This commit is contained in:
parent
7461dcf9a8
commit
6d63ed8a92
@ -774,7 +774,7 @@ sudo_file_display_cmnd(struct sudo_nss *nss, struct passwd *pw)
|
||||
if (match != NULL && !match->negated) {
|
||||
const int len = sudo_printf(SUDO_CONV_INFO_MSG, "%s%s%s\n",
|
||||
safe_cmnd, user_args ? " " : "", user_args ? user_args : "");
|
||||
rval = len == -1 ? -1 : 0;
|
||||
rval = len < 0 ? -1 : 0;
|
||||
}
|
||||
done:
|
||||
debug_return_int(rval);
|
||||
|
Loading…
x
Reference in New Issue
Block a user