rpms/chkrootkit/devel chkrootkit-0.46a-warnings.patch, NONE, 1.1 .cvsignore, 1.4, 1.5 chkrootkit.spec, 1.12, 1.13 sources, 1.4, 1.5

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Thu Nov 10 21:17:16 UTC 2005


Author: mschwendt

Update of /cvs/extras/rpms/chkrootkit/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20008

Modified Files:
	.cvsignore chkrootkit.spec sources 
Added Files:
	chkrootkit-0.46a-warnings.patch 
Log Message:
* Thu Nov 10 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.46a-1
- Update to 0.46a.


chkrootkit-0.46a-warnings.patch:

--- NEW FILE chkrootkit-0.46a-warnings.patch ---
diff -Nur chkrootkit-0.46a-orig/chklastlog.c chkrootkit-0.46a/chklastlog.c
--- chkrootkit-0.46a-orig/chklastlog.c	2005-10-19 19:32:23.000000000 +0200
+++ chkrootkit-0.46a/chklastlog.c	2005-11-10 22:15:31.000000000 +0100
@@ -164,7 +164,7 @@
             {
                 if (*uid > MAX_ID)
                 {
-                   fprintf(stderr, "MAX_ID is %ld and current uid is %ld, please check\n\r", MAX_ID, *uid );
+		  fprintf(stderr, "MAX_ID is %ld and current uid is %ld, please check\n\r", (long int)MAX_ID, (long int)*uid );
                    exit (1);
 
                 }
diff -Nur chkrootkit-0.46a-orig/chkproc.c chkrootkit-0.46a/chkproc.c
--- chkrootkit-0.46a-orig/chkproc.c	2005-10-28 17:23:24.000000000 +0200
+++ chkrootkit-0.46a/chkproc.c	2005-11-10 22:11:46.000000000 +0100
@@ -120,6 +120,7 @@
       }
 #if defined(__linux__)
       else if (!memcmp(argv[i], "-p", 2))
+      {
         if (i+1 < argc)
            pv = atoi(argv[++i]);
         else
@@ -127,6 +128,7 @@
 	   printf("Usage: %s [-v] [-v] [-p procps version]\n", argv[0]);
 	   return 0;
         }
+      }
 #endif
    }
 #if defined(__sun)
@@ -138,10 +140,10 @@
    if (pv < 1 || pv > PS_MAX)
       pv = 1;
    pscmd = ps_cmds[pv];
-/*  printf("pv = %d\n\r", pv); /* -- DEBUG */
+   /*  printf("pv = %d\n\r", pv); */  /* -- DEBUG */
 #endif
 
-/* printf("pscmd = %s\n\r", pscmd); /* -- DEBUG */
+/* printf("pscmd = %s\n\r", pscmd); */  /* -- DEBUG */
    if (!(ps = popen(pscmd, "r")))
    {
        perror("ps");
@@ -186,11 +188,11 @@
           p++;
       while (isspace(*p)) /* Skip spaces */
           p++;
-/*  printf(">>%s<<\n", p);  /* -- DEBUG */
+/*  printf(">>%s<<\n", p); */  /* -- DEBUG */
       ret = atol(p);
       if ( ret < 0 || ret > MAX_PROCESSES )
       {
-         fprintf (stderr, " OooPS, not expected %d value\n", ret);
+	 fprintf (stderr, " OooPS, not expected %ld value\n", ret);
          exit (2);
       }
       psproc[ret] = 1;
@@ -217,11 +219,11 @@
       else if (maybeathread) {
          isathread[atol(tmp_d_name)] = 1; /* mark it as a linux NTPL thread if it's in the form of "\.[0-9]*" */
          if (verbose)
-            printf("%d is a Linux Thread, marking as such...\n", atol(tmp_d_name));
+            printf("%ld is a Linux Thread, marking as such...\n", atol(tmp_d_name));
       }
 #endif
 
-/*      printf("%s\n", tmp_d_name); /* -- DEBUG */
+/*      printf("%s\n", tmp_d_name); */  /* -- DEBUG */
       dirproc[atol(tmp_d_name)] = 1;
    }
    closedir(proc);
@@ -234,7 +236,7 @@
       snprintf(&buf[6], 6, "%d", i);
       if (!chdir(buf))
       {
-/*         if (!dirproc[i] ) /*  && !kill(i, 0)) */
+/*         if (!dirproc[i] ) */ /*  && !kill(i, 0)) */
          if (!dirproc[i] && !psproc[i])
          {
 #if defined(__linux__)


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/chkrootkit/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore	24 Feb 2005 15:13:53 -0000	1.4
+++ .cvsignore	10 Nov 2005 21:17:14 -0000	1.5
@@ -1 +1 @@
-chkrootkit-0.45.tar.gz
+chkrootkit-0.46a.tar.gz


Index: chkrootkit.spec
===================================================================
RCS file: /cvs/extras/rpms/chkrootkit/devel/chkrootkit.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- chkrootkit.spec	19 Aug 2005 14:15:36 -0000	1.12
+++ chkrootkit.spec	10 Nov 2005 21:17:14 -0000	1.13
@@ -1,6 +1,6 @@
 Name:           chkrootkit
-Version:        0.45
-Release:        4%{?dist}
+Version:        0.46a
+Release:        1%{?dist}
 Summary:        Tool to locally check for signs of a rootkit
 Group:          Applications/System
 License:        BSD-like
@@ -14,6 +14,7 @@
 Patch1:         chkrootkit-0.44-getCMD.patch
 Patch2:         chkrootkit-0.44-inetd.patch
 Patch3:         chkrootkit-0.45-includes.patch
+Patch4:         chkrootkit-0.46a-warnings.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  desktop-file-utils
@@ -40,6 +41,7 @@
 %patch1 -p1 -b .getCMD
 %patch2 -p1 -b .inetd
 %patch3 -p1 -b .includes
+%patch4 -p1 -b .warnings
 sed -i -e 's!\s\+ at strip.*!!g' Makefile
 
 
@@ -106,6 +108,9 @@
 
 
 %changelog
+* Thu Nov 10 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.46a-1
+- Update to 0.46a.
+
 * Fri Aug 19 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.45-4
 - Pass on command-line arguments to main program (#166321).
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/chkrootkit/devel/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources	24 Feb 2005 15:13:53 -0000	1.4
+++ sources	10 Nov 2005 21:17:14 -0000	1.5
@@ -1 +1 @@
-57493e24ca81750a200d8bcb4049e858  chkrootkit-0.45.tar.gz
+b73fb9e365d2edcd031d65b16e965a18  chkrootkit-0.46a.tar.gz




More information about the fedora-extras-commits mailing list