File: check_wtmpx-do-not-silently-do-nothing-on-unsupported-pla.patch

package info (click to toggle)
chkrootkit 0.58b-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,796 kB
  • sloc: sh: 187,089; ansic: 3,779; makefile: 103
file content (27 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Richard Lewis <richard.lewis.debian@googlemail.com>
Date: Mon, 16 Sep 2024 09:04:04 +0100
Subject: check_wtmpx: do not silently do nothing on unsupported platforms

Forwarded: yes
(Forwarded by email: 21 Dec 2024)
---
 check_wtmpx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/check_wtmpx.c b/check_wtmpx.c
index cb1d67f..eaffad5 100644
--- a/check_wtmpx.c
+++ b/check_wtmpx.c
@@ -12,10 +12,10 @@
  *          : /usr/ccs/bin/mcs -d check_wtmpx
  * Date     : 2001-06-27 11:36
  */
+#include <stdio.h>
 #if !defined(__SunOS__) && !defined(SOLARIS2)
-int main () { return 0; }
+int main (void){ fprintf(stderr,"Unsupported operating system\n"); return 1; }
 #else
-#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/file.h>