diff options
Diffstat (limited to 'sysutils/cdrtools/patches/patch-ah')
-rw-r--r-- | sysutils/cdrtools/patches/patch-ah | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sysutils/cdrtools/patches/patch-ah b/sysutils/cdrtools/patches/patch-ah new file mode 100644 index 00000000000..de345a01b04 --- /dev/null +++ b/sysutils/cdrtools/patches/patch-ah @@ -0,0 +1,40 @@ +$NetBSD: patch-ah,v 1.1.1.1 2006/01/05 23:27:59 wiz Exp $ + +--- cdda2wav/setuid.c.orig 2004-08-19 12:54:34.000000000 +0200 ++++ cdda2wav/setuid.c +@@ -94,7 +94,7 @@ void needroot(necessary) + + if (geteuid() == 0) return; /* nothing to do */ + +-#if defined _POSIX_SAVED_IDS && defined (HAVE_SETEUID) ++#if defined (HAVE_SETEUID) + if (seteuid(effective_uid)) { + perror("seteuid in needroot()"); + exit(PERM_ERROR); +@@ -133,7 +133,7 @@ void dontneedroot() + return; + if (geteuid() != 0) return; /* nothing to do */ + +-#if defined _POSIX_SAVED_IDS && defined (HAVE_SETEUID) ++#if defined (HAVE_SETEUID) + if (seteuid(real_uid)) { + perror("seteuid in dontneedroot()"); + exit(PERM_ERROR); +@@ -217,7 +217,7 @@ void needgroup(necessary) + + if (getegid() == effective_gid) return; /* nothing to do */ + +-#if defined _POSIX_SAVED_IDS && defined (HAVE_SETEGID) ++#if defined (HAVE_SETEGID) + if (setegid(effective_gid)) { + perror("setegid in needgroup()"); + exit(PERM_ERROR); +@@ -249,7 +249,7 @@ void dontneedgroup() + exit(INTERNAL_ERROR); + } + if (getegid() != effective_gid) return; /* nothing to do */ +-#if defined _POSIX_SAVED_IDS && defined (HAVE_SETEGID) ++#if defined (HAVE_SETEGID) + if (setegid(real_gid)) { + perror("setegid in dontneedgroup()"); + exit(PERM_ERROR); |