Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 12/4/83; site rlgvax.UUCP Path: utzoo!linus!philabs!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.bugs.uucp Subject: Re: bug in 4.2BSD uucp? Message-ID: <1601@rlgvax.UUCP> Date: Sat, 21-Jan-84 23:07:51 EST Article-I.D.: rlgvax.1601 Posted: Sat Jan 21 23:07:51 1984 Date-Received: Sun, 22-Jan-84 07:56:42 EST References: <467@axiom.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 13 Well, the code to do this is in "cntrl.c"; the routine which does it is called "putinpub". A look at the code that would call "putinpub" seems to indicate that it does all its access checking before it even receives the file. It calls "chkpth" which checks what the USERFILE allows, and calls "chkperm" which checks that the file and the containing directory are both publicly writable (both these are in "chkpth.c"). So it looks like the only way the program would stick things into PUBDIR is if the "xmv" failed *but* the permissions at the time the transfer started were valid. I suspect this isn't a bug, but either a feature or a misfeature (depending on your point of view). Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy