Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37038885
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-owl-warnings.patch
Download


diff -upk.orig SimplePAMApps-0.60.orig/common/lib/checkfds.c SimplePAMApps-0.60/common/lib/checkfds.c
--- SimplePAMApps-0.60.orig/common/lib/checkfds.c	1999-02-19 11:38:01 +0000
+++ SimplePAMApps-0.60/common/lib/checkfds.c	2005-06-28 14:54:55 +0000
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/stat.h>
diff -upk.orig SimplePAMApps-0.60.orig/common/lib/login_indep.c SimplePAMApps-0.60/common/lib/login_indep.c
--- SimplePAMApps-0.60.orig/common/lib/login_indep.c	1998-12-10 09:49:38 +0000
+++ SimplePAMApps-0.60/common/lib/login_indep.c	2005-06-28 14:54:55 +0000
@@ -1,6 +1,7 @@
 #define _BSD_SOURCE
 #include <string.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <signal.h>
 #include <termios.h>
diff -upk.orig SimplePAMApps-0.60.orig/common/lib/passwd_indep.c SimplePAMApps-0.60/common/lib/passwd_indep.c
--- SimplePAMApps-0.60.orig/common/lib/passwd_indep.c	1999-11-02 09:41:34 +0000
+++ SimplePAMApps-0.60/common/lib/passwd_indep.c	2005-06-28 14:54:55 +0000
@@ -1,4 +1,6 @@
 #include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <ctype.h>
 
diff -upk.orig SimplePAMApps-0.60.orig/common/lib/wtmp.c SimplePAMApps-0.60/common/lib/wtmp.c
--- SimplePAMApps-0.60.orig/common/lib/wtmp.c	2005-06-28 14:54:38 +0000
+++ SimplePAMApps-0.60/common/lib/wtmp.c	2005-06-28 14:54:55 +0000
@@ -15,6 +15,7 @@
 #include <string.h>
 #include <malloc.h>
 #include <unistd.h>
+#include <time.h>
 
 #ifndef UT_IDSIZE
 #define UT_IDSIZE 4            /* XXX - this is sizeof(struct utmp.ut_id) */
diff -upk.orig SimplePAMApps-0.60.orig/pamapps/lib/wtmp-gate.c SimplePAMApps-0.60/pamapps/lib/wtmp-gate.c
--- SimplePAMApps-0.60.orig/pamapps/lib/wtmp-gate.c	2005-06-28 14:54:38 +0000
+++ SimplePAMApps-0.60/pamapps/lib/wtmp-gate.c	2005-06-28 14:59:15 +0000
@@ -2,6 +2,7 @@
  * $Id: wtmp-gate.c,v 1.1 1998/11/25 12:33:32 saw Rel $
  */
 
+#include <stdlib.h>
 #include <utmp.h>
 
 #include <security/pam_appl.h>
@@ -21,22 +21,26 @@ int utmp_open_session(pam_handle_t *pamh
                              , const char **callname, const char **err_descr)
 {
     const char *user, *terminal, *rhost;
+    const void *item;
     int retval;
 
-    retval = pam_get_item(pamh, PAM_USER, (const void **)&user);
+    retval = pam_get_item(pamh, PAM_USER, &item);
+    user = item;
     if (retval != PAM_SUCCESS) {
         *callname = "pam_get_item(PAM_USER)";
         *err_descr = pam_strerror(pamh, retval);
         return -1;
     }
-    retval = pam_get_item(pamh, PAM_TTY, (const void **)&terminal);
+    retval = pam_get_item(pamh, PAM_TTY, &item);
+    terminal = item;
     if (retval != PAM_SUCCESS) {
         *callname = "pam_get_item(PAM_TTY)";
         *err_descr = pam_strerror(pamh, retval);
         return -1;
     }
     if (!terminal) terminal = "???";
-    retval = pam_get_item(pamh, PAM_RHOST, (const void **)&rhost);
+    retval = pam_get_item(pamh, PAM_RHOST, &item);
+    rhost = item;
     if (retval != PAM_SUCCESS)
         rhost = NULL;
 
@@ -49,14 +53,17 @@ int utmp_close_session(pam_handle_t *pam
 {
     int retval;
     const char *user, *terminal;
+    const void *item;
 
-    retval = pam_get_item(pamh, PAM_USER, (const void **)&user);
+    retval = pam_get_item(pamh, PAM_USER, &item);
+    user = item;
     if (retval != PAM_SUCCESS) {
         *callname = "pam_get_item(PAM_USER)";
         *err_descr = pam_strerror(pamh, retval);
         return -1;
     }
-    retval = pam_get_item(pamh, PAM_TTY, (const void **)&terminal);
+    retval = pam_get_item(pamh, PAM_TTY, &item);
+    terminal = item;
     if (retval != PAM_SUCCESS) {
         *callname = "pam_get_item(PAM_TTY)";
         *err_descr = pam_strerror(pamh, retval);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin