--- SimplePAMApps/common/include/su_indep.h +++ SimplePAMApps/common/include/su_indep.h @@ -17,6 +17,6 @@ void restore_terminal_owner(); int make_process_unkillable(const char **callname , const char **err_descr); -void make_process_killable(); +int make_process_killable(); void parse_command_line(int argc, char *argv[], su_context *ctx); --- SimplePAMApps/common/lib/su_indep.c +++ SimplePAMApps/common/lib/su_indep.c @@ -177,9 +177,9 @@ return 0; } -void make_process_killable() +int make_process_killable() { - setreuid(invoked_uid, -1); + return setreuid(invoked_uid, -1); } /* ------ command line parser ----------------- */