🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.usg
Article #272

Re: Bug in who(1)?

#272
From: Douglas J. Wait
Date: Tue, 28 Jan 1986 21:31
21 lines
1183 bytes
If a file parameter is passed to who(1) and the file is not a multiple of
sizeof(struct utmp) the file will be unlinked.  An empty file of the same
name will be created.  This will also happen using the getut(3C) functions.

The reason you can not repeat the problem with a directory under a non-root
user is that only root can remove a directory.

The other options, such as -b, have nothing to do with the file truncation.

Hope this helps!
-- 

			Doug Wait
			AT&T Information Systems
			200 Lincon
			Maitland, FL 32751
			(305)660-6460

			..!{akgua,ihnp4,abcom}!abfli!doug

			"Is anyBODY OUT there..."
Technical Details
Message-ID: <154@ides.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!mhuxv!akgua!akguc!codas!bsdpkh!ides!doug
References: <691@ttrdc.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site ides.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!mhuxv!akgua!akguc!codas!bsdpkh!ides!doug
From: doug@ides.UUCP (Douglas J. Wait)
Newsgroups: net.bugs.usg
Subject: Re: Bug in who(1)?
Message-ID: <154@ides.UUCP>
Date: Tue, 28-Jan-86 16:31:38 EST
Article-I.D.: ides.154
Posted: Tue Jan 28 16:31:38 1986
Date-Received: Sun, 9-Feb-86 06:49:35 EST
References: <691@ttrdc.UUCP>
Organization: AT&T-IS (CSD), Orlando Fl.
Lines: 21