Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37501300
en ru br
ALT Linux repos
S:0.60-alt36
5.0: 0.60-alt26
4.1: 0.60-alt25
4.0: 0.60-alt25
3.0: 0.60-alt22

Group :: System/Base
RPM: SimplePAMApps

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: SimplePAMApps-0.60-alt-su-make_process_killable.patch
Download


--- 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 ----------------- */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin