*BSD News Article 14476


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!news
From: andrew@werple.apana.org.au (Andrew Herbert)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: Patchkit: tip for zmodem
Date: 15 Apr 1993 14:37:05 +1000
Organization: werple public-access unix, Melbourne
Lines: 54
Message-ID: <1qioph$mbd@werple.apana.org.au>
References: <C5GF08.Hu2@newsserver.technet.sg>
NNTP-Posting-Host: werple.apana.org.au

milton@solomon.technet.sg (Milton Choo) writes:

>Please pardon me, but after installing 0.2.2 on 0.1
>i still have problems with tip which using Zmodem.

[Patch that forces bits8 = 1 in tip.c omitted]

A much better way to get around this problem is to put the line "parity=none"
in ~/.tiprc.  tip doesn't flip to ruid before trying to read .tiprc, so this
fails if your home directory is not world-searchable or .tiprc is not
world-readable.  A fix for this follows.

Apologies if this appears in 0.2.2 - I've only looked at 0.2.1...

Andrew

*** tip.c.orig	Thu Apr 15 14:02:02 1993
--- tip.c	Thu Apr 15 14:02:33 1993
***************
*** 152,157 ****
--- 152,166 ----
  	loginit();
  
  	/*
+ 	 * Now that we have the logfile and the ACU open
+ 	 *  return to the real uid and gid.  These things will
+ 	 *  be closed on exit.  Swap real and effective uid's
+ 	 *  so we can get the original permissions back
+ 	 *  for removing the uucp lock.
+ 	 */
+ 	user_uid();
+ 
+ 	/*
  	 * Kludge, their's no easy way to get the initialization
  	 *   in the right order, so force it here
  	 */
***************
*** 164,178 ****
  		(void)uu_unlock(uucplock);
  		exit(3);
  	}
- 
- 	/*
- 	 * Now that we have the logfile and the ACU open
- 	 *  return to the real uid and gid.  These things will
- 	 *  be closed on exit.  Swap real and effective uid's
- 	 *  so we can get the original permissions back
- 	 *  for removing the uucp lock.
- 	 */
- 	user_uid();
  
  	/*
  	 * Hardwired connections require the
--- 173,178 ----