Browse Source

sockstat: add patches

master
Pekka Helenius 6 years ago
committed by GitHub
parent
commit
7bfb88c661
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 0 deletions
  1. +15
    -0
      sockstat/10_fix-CHAR-BIT-missing.patch
  2. +16
    -0
      sockstat/20_add-GCC-hardening.patch
  3. +13
    -0
      sockstat/30_add_err-headers.patch

+ 15
- 0
sockstat/10_fix-CHAR-BIT-missing.patch View File

@ -0,0 +1,15 @@
Description: add a necessary header. (Closes: #518851)
Author: peter green <plugwash@p10link.net>
Last-Update: 2009-04-05
Index: sockstat-0.3/sockstat.c
===================================================================
--- a/sockstat.c 2009-06-04 11:34:59.051534157 +0800
+++ b/sockstat.c 2009-06-04 11:35:27.283531833 +0800
@@ -41,6 +41,7 @@
#include <pwd.h>
#include <grp.h>
#include <assert.h>
+#include <limits.h>
#define SEARCH_ALL 0x00
#define SEARCH_GID 0x01

+ 16
- 0
sockstat/20_add-GCC-hardening.patch View File

@ -0,0 +1,16 @@
Description: add GCC hardening.
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Last-Update: 2016-12-30
Index: sockstat-0.3/Makefile
===================================================================
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ SRCS = sockstat.c
OBJS = ${SRCS:.c=.o}
sockstat: ${OBJS}
- cc -o $@ ${OBJS}
+ cc -o $@ $(LDFLAGS) ${OBJS}
install:
install -m 755 -c sockstat ${DESTDIR}/usr/bin

+ 13
- 0
sockstat/30_add_err-headers.patch View File

@ -0,0 +1,13 @@
Add missing error headers
by Pekka Helenius, 2018
--- a/sockstat.c 2008-06-01 04:52:39.000000000 +0300
+++ b/sockstat.c 2018-10-02 23:29:16.872336139 +0300
@@ -38,6 +38,7 @@
#include <dirent.h>
#include <ctype.h>
#include <errno.h>
+#include <err.h>
#include <pwd.h>
#include <grp.h>
#include <assert.h>

Loading…
Cancel
Save