diff options
author | tron <tron> | 2004-06-02 12:25:35 +0000 |
---|---|---|
committer | tron <tron> | 2004-06-02 12:25:35 +0000 |
commit | ba17ad5f30860b811c4a5a8d5d43aa59f23b7c95 (patch) | |
tree | 4f32d15454673a44dbfecaa0b89220e42430a805 /news/inn | |
parent | 97bd9bebd14898e13a57796ab16ac86e4c34de28 (diff) | |
download | pkgsrc-ba17ad5f30860b811c4a5a8d5d43aa59f23b7c95.tar.gz |
Don't try to setuid(geteuid()) in "rnews" under NetBSD which is documented
not to work. This was correct in INN 2.3.x but changed for some reason
in INN 2.4.x which broke "rnews".
Diffstat (limited to 'news/inn')
-rw-r--r-- | news/inn/distinfo | 3 | ||||
-rw-r--r-- | news/inn/patches/patch-ae | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/news/inn/distinfo b/news/inn/distinfo index c94ebcaa533..b73b2dce498 100644 --- a/news/inn/distinfo +++ b/news/inn/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.9 2004/06/02 11:43:55 tron Exp $ +$NetBSD: distinfo,v 1.10 2004/06/02 12:25:35 tron Exp $ SHA1 (inn-2.4.1.tar.gz) = f36267eca56a643a37ed6c2903cd6fbb71e407f5 Size (inn-2.4.1.tar.gz) = 1849845 bytes @@ -6,6 +6,7 @@ SHA1 (patch-aa) = 39fcd03440ece2246503197d217e04e4724bbb8d SHA1 (patch-ab) = c3360248137c07c0e1750860de79aa1f372a6352 SHA1 (patch-ac) = dafbd4918eb771cf0bb49b9d2503125812fe6852 SHA1 (patch-ad) = c782b0510c460a8942bb272e18e6d8d78901d4c9 +SHA1 (patch-ae) = 1177f68a567cbbf4b131548c8a1a595e3d3f29b8 SHA1 (patch-ag) = d91e1710a12d6bf39564f550947f4705b0ffd585 SHA1 (patch-ah) = 719ed7d26c23ce5170275995e4bd9e5a337199b9 SHA1 (patch-ai) = 30caac4e6b269dc7cfac507ca1f8f0fe5ac11329 diff --git a/news/inn/patches/patch-ae b/news/inn/patches/patch-ae new file mode 100644 index 00000000000..dc7488d9ad1 --- /dev/null +++ b/news/inn/patches/patch-ae @@ -0,0 +1,17 @@ +$NetBSD: patch-ae,v 1.8 2004/06/02 12:25:35 tron Exp $ + +--- frontends/rnews.c.orig Wed Jan 7 23:47:19 2004 ++++ frontends/rnews.c Wed Jun 2 14:19:30 2004 +@@ -822,10 +822,12 @@ + message_handlers_warn(1, message_log_syslog_err); + message_handlers_die(1, message_log_syslog_err); + ++#if !defined(__FreeBSD__) && !defined(__bsdi__) && !defined (__NetBSD__) + if (setgid(getegid()) < 0) + die("cannot setgid to %lu", (unsigned long) getegid()); + if (setuid(geteuid()) < 0) + die("cannot setuid to %lu", (unsigned long) geteuid()); ++#endif + + if (!innconf_read(NULL)) + exit(1); |