Thread View: news.software.readers
3 messages
3 total messages
Started by Rudolph Todd Maceyko
Thu, 15 Feb 1996 00:00
Pnews & NNTP problem in trn 3.6
Author: Rudolph Todd Maceyko
Date: Thu, 15 Feb 1996 00:00
Date: Thu, 15 Feb 1996 00:00
92 lines
2912 bytes
2912 bytes
I recently made the following patch to our Pnews to avoid a problem
where a malicious user could create his own active and/or newsgroups
file in /tmp and all other users on the machines would then use them.
This patch causes Pnews to disregard /tmp/active and/or /tmp/newsgroups
when configured to use NNTP.
I hope that something like this will make it into trn 4.0.
Thanks,
Rudy
--
Rudy Maceyko <rm55+@pitt.edu>
Computing & Information Services
University of Pittsburgh
*** 3.0 1992/02/23 21:25:39
--- Pnews.SH 1996/02/15 19:17:28
***************
*** 5,9 ****
$spitshell >Pnews <<!GROK!THIS!
$startsh
! # $Id: Pnews.SH,v 3.0 1992/02/23 21:25:39 davison Trn $
#
# This software is Copyright 1991 by Stan Barber.
--- 5,9 ----
$spitshell >Pnews <<!GROK!THIS!
$startsh
! # $Id: Pnews.SH,v 3.0.1.1 1996/02/15 19:16:45 rm55 Exp $
#
# This software is Copyright 1991 by Stan Barber.
***************
*** 110,134 ****
tmp="${TMPDIR-/tmp}"
- newsgroups=${NEWSGROUPS-$lib/newsgroups}
- active=${NEWSACTIVE-$active}
- case "$active" in
- none) active="$tmp/Pnact.$$";;
- esac
news_sig=${NEWSSIGNATURE-$dotdir/.news_sig}
case "$NETSPEED" in
fast)
! if $test ! -f "$newsgroups"; then
! newsgroups="$tmp/Pnng.$$";
! rmlist="$newsgroups";
! cmdlist="$nntplist -o $newsgroups newsgroups ;";
! fi
! if $test ! -f "$active"; then
! active="$tmp/Pnact.$$";
! rmlist="$rmlist $active";
! cmdlist="$cmdlist $nntplist -o $active active";
! fi
;;
esac
if $test -f $dotdir/.pnewsexpert; then
--- 110,139 ----
tmp="${TMPDIR-/tmp}"
news_sig=${NEWSSIGNATURE-$dotdir/.news_sig}
+ !NO!SUBS!
+ if $test "$d_nntp" = define; then
+ $spitshell >>Pnews <<'!NO!SUBS!'
+ newsgroups="$tmp/Pnng.$$"
+ active="$tmp/Pnact.$$"
case "$NETSPEED" in
fast)
! rm -f "$newsgroups"
! rmlist="$newsgroups";
! cmdlist="$nntplist -o $newsgroups newsgroups ;";
!
! rm -f "$active"
! rmlist="$rmlist $active";
! cmdlist="$cmdlist $nntplist -o $active active";
;;
esac
+ !NO!SUBS!
+ else
+ $spitshell >>Pnews <<'!NO!SUBS!'
+ newsgroups=${NEWSGROUPS-$lib/newsgroups}
+ active=${NEWSACTIVE-$active}
+ !NO!SUBS!
+ fi
+ $spitshell >>Pnews <<'!NO!SUBS!'
if $test -f $dotdir/.pnewsexpert; then
Re: Pnews & NNTP problem in trn 3.6
Author: Larry W. Virden
Date: Sat, 17 Feb 1996 00:00
Date: Sat, 17 Feb 1996 00:00
11 lines
1163 bytes
1163 bytes
Of course, someone who wants/needs to use their own newsgroups file, because for instance the authority one is missing entries, might really have a problem with this. So how do both needs get addressed? -- :s Larry W. Virden INET: lvirden@cas.org :s <URL:http://www.teraform.com/%7Elvirden/> <*> :s Unless explicitly stated to the contrary, nothing in this posting should :s be construed as representing my employer's opinions.
Re: Pnews & NNTP problem in trn 3.6
Author: Olaf Titz
Date: Mon, 19 Feb 1996 00:00
Date: Mon, 19 Feb 1996 00:00
18 lines
1412 bytes
1412 bytes
Larry W. Virden <lvirden@cas.org> wrote:
> Of course, someone who wants/needs to use their own newsgroups file,
> because for instance the authority one is missing entries, might
> really have a problem with this. So how do both needs get addressed?
At least one newsgroup in the set you post to must be valid on the
server, or you risk the posting getting refused by the server. But
Pnews won't stop you from _cross_posting in invalid newsgroups, so
there is no need to add them anywhere.
olaf
--
___ Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de ____
__ o <URL:http://www.inka.de/~bigred/> <IRC:praetorius>
__/<_ >> Just as long as the wheels keep on turning round
_)>(_)______________ I will live for the groove 'til the sun goes down << ____
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads