File: fixchkdirsinppc.dpatch

package info (click to toggle)
chkrootkit 0.48-8
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 448 kB
  • ctags: 221
  • sloc: sh: 3,174; ansic: 1,474; makefile: 88
file content (21 lines) | stat: -rw-r--r-- 694 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh /usr/share/dpatch/dpatch-run
## fixchkdirsinppc.dpatch by Giuseppe Iuculano <giuseppe@iuculano.it>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: On ppc a "char" is unsigned.  In this case, when getopt returns -1,
##     it is converted to an unsigned char. Thanks Enrico Zini for the fix.
##     (Closes: #501066)

@DPATCH@
diff -urNad chkrootkit~/chkdirs.c chkrootkit/chkdirs.c
--- chkrootkit~/chkdirs.c	2008-11-26 16:33:32.000000000 +0100
+++ chkrootkit/chkdirs.c	2008-11-26 16:41:45.000000000 +0100
@@ -238,7 +238,7 @@
 {
   int norecurse = 0;
   int i, retval;
-  char c;
+  int c;
 
   opterr = 0;
   while ((c = getopt(argc, argv, "n")) > 0) {