1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/x11/imwheel/files/patch-getopt::getopt.c
Sheldon Hearn 15be3d1062 Update to imwheel-0.9.9, which fixes a root exploit in the case where
imwheel is setuid root.

Note that the port doesn't install imwheel setuid root, so the
problem would not have affected users of the port / package.

Regardless, it's bad PR to make mouse wheel support so visible
in the FAQ and then keep a known-bad version of the supporting
software in the ports tree.

This update is derived from broken patches received by way of the
maintainer, who no longer has time to maintain the port.  This port is
now looking for a maintainer.

Submitted by:	Jeremy Norris <ishmael27@home.com>
2001-06-28 23:48:48 +00:00

17 lines
577 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- getopt/getopt.c.orig Tue Apr 6 05:22:57 1999
+++ getopt/getopt.c Fri Jun 29 01:22:22 2001
@@ -166,11 +166,12 @@
/* Value of POSIXLY_CORRECT environment variable. */
static char *posixly_correct;
-#ifdef __GNU_LIBRARY__
+#if defined(__GNU_LIBRARY__) || defined(__FreeBSD__)
/* We want to avoid inclusion of string.h with non-GNU libraries
because there are many ways it can cause trouble.
On some systems, it contains special magic macros that don't work
in GCC. */
+#include <stdlib.h>
#include <string.h>
#define my_index strchr
#else