]> git.pld-linux.org Git - packages/util-linux.git/commitdiff
- outdated
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 22 Mar 2007 18:54:17 +0000 (18:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-linux-gecos.patch -> 1.2
    util-linux-glibc.patch -> 1.2
    util-linux-login.patch -> 1.6
    util-linux-no_multiline.patch -> 1.2

util-linux-gecos.patch [deleted file]
util-linux-glibc.patch [deleted file]
util-linux-login.patch [deleted file]
util-linux-no_multiline.patch [deleted file]

diff --git a/util-linux-gecos.patch b/util-linux-gecos.patch
deleted file mode 100644 (file)
index 47b8751..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
---- util-linux-2.10m/login-utils/chfn.c        Sun May 14 19:27:59 2000
-+++ util-linux-2.10m/login-utils/chfn.c        Thu Jun  1 06:24:25 2000
-@@ -84,7 +84,7 @@
- #define memzero(ptr, size) memset((char *) ptr, 0, size)
- /* we do not accept gecos field sizes longer than MAX_FIELD_SIZE */
--#define MAX_FIELD_SIZE                256
-+#define MAX_FIELD_SIZE                64
- int main (int argc, char **argv) {
-     char *cp;
-@@ -408,6 +408,12 @@
-       return -1;
-     }
-+    if (strlen(gecos) > MAX_FIELD_SIZE) {
-+      if (msg != NULL)
-+          printf("%s: ", msg);
-+      printf("field is too long.\n");
-+      return -1;
-+    }
-     for (i = 0; i < strlen (gecos); i++) {
-       c = gecos[i];
-       if (c == ',' || c == ':' || c == '=' || c == '"' || c == '\n') {
diff --git a/util-linux-glibc.patch b/util-linux-glibc.patch
deleted file mode 100644 (file)
index 127b9a8..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- util-linux-2.10k/sys-utils/ipcs.c.glibc    Sun Nov 21 18:36:03 1999
-+++ util-linux-2.10k/sys-utils/ipcs.c  Mon Apr 17 05:07:05 2000
-@@ -31,6 +31,8 @@
- /* X/OPEN tells us to use <sys/{types,ipc,sem}.h> for semctl() */
- /* X/OPEN tells us to use <sys/{types,ipc,msg}.h> for msgctl() */
- /* X/OPEN tells us to use <sys/{types,ipc,shm}.h> for shmctl() */
-+#define _GNU_SOURCE 1
-+#define __USE_GNU 1
- #include <sys/types.h>
- #include <sys/ipc.h>
- #include <sys/sem.h>
diff --git a/util-linux-login.patch b/util-linux-login.patch
deleted file mode 100644 (file)
index 5f2810b..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-diff -urN util-linux-2.11d.org/login-utils/login.c util-linux-2.11d/login-utils/login.c
---- util-linux-2.11d.org/login-utils/login.c   Sun May 20 22:27:44 2001
-+++ util-linux-2.11d/login-utils/login.c       Sun Jun  3 21:49:55 2001
-@@ -156,7 +156,7 @@
- #define SLEEP_EXIT_TIMEOUT 5
--#ifdef __linux__
-+#ifndef __linux__
- #define DO_PS_FIDDLING
- #endif
-@@ -515,8 +515,6 @@
-       tcsetattr(0,TCSAFLUSH,&tt);
-     }
--    openlog("login", LOG_ODELAY, LOG_AUTHPRIV);
--
- #if 0
-     /* other than iso-8859-1 */
-     printf("\033(K");
-@@ -646,8 +644,12 @@
-     retcode = pam_setcred(pamh, PAM_ESTABLISH_CRED);
-     PAM_FAIL_CHECK;
-+    openlog("login", LOG_ODELAY, LOG_AUTHPRIV);
-+
- #else /* ! USE_PAM */
-+    openlog("login", LOG_ODELAY, LOG_AUTHPRIV);
-+
-     for (cnt = 0;; ask = 1) {
- #  ifndef __linux__
-       ioctlval = 0;
-@@ -866,7 +868,9 @@
-       /* If we can't find a pre-existing entry by pid, try by line.
-          BSD network daemons may rely on this. (anonymous) */
-       if (utp == NULL) {
--           setutent();
-+          endutent(); 
-+          setutent();
-+          memset(&ut, 0, sizeof(ut));
-            ut.ut_type = LOGIN_PROCESS;
-            strncpy(ut.ut_id, tty_number, sizeof(ut.ut_id));
-            strncpy(ut.ut_line, tty_name, sizeof(ut.ut_line));
-@@ -1103,6 +1107,8 @@
- #endif
-     signal(SIGINT, SIG_DFL);
-     
-+    openlog("login", LOG_ODELAY, LOG_AUTHPRIV);
-+
-     /* discard permissions last so can't get killed and drop core */
-     if(setuid(pwd->pw_uid) < 0 && pwd->pw_uid) {
-       syslog(LOG_ALERT, _("setuid() failed"));
diff --git a/util-linux-no_multiline.patch b/util-linux-no_multiline.patch
deleted file mode 100644 (file)
index cbd648c..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure~ Thu Jun 26 21:10:07 2003
-+++ configure  Thu Jun 26 21:11:17 2003
-@@ -470,7 +470,7 @@
- #include <libintl.h>
- int main(int a, char **v){
-   if (a == -1)  /* false */
--        gettext("There is no gettext man page\n");
-+        gettext("There is no gettext man page\\n");
-   exit(0);
- }
- ' > conftest.c
This page took 0.075391 seconds and 4 git commands to generate.