🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #785

Re: /etc/link problem via /etc/mvdir

#785
From: ~XT4103000~Marc Mengel~C25~G25~6...
Date: Mon, 23 May 1988 14:07
26 lines
1330 bytes
In article <532@etn-rad.UUCP> markus@etn-rad.UUCP (Markus Richardson) writes:
>I did something dangerous/stupid but only realized it after the fact.  
>...
>I entered '/etc/mvdir * dir9' 
>...
>Needless to say, I could not locate the directories and associated files
>until I did a /etc/fsck.  They all turned out to be UNREFerenced.  What the 
>heck happened?   If it matters, I am running SysV.2 on a Plexus.

I assume you moved dir9 into itself, i.e. 

	link("dir9","dir9/dir9");
	link("dir9/dir9/..", "dir9");
	unlink("dir9");

Thereby generating a circular reference (hence the ref count on dir9
was still 1 after the whole proceeding, so no warnings about removing
the last link to a non-empyt directory).

And some people wonder why linking/unlinking directories requires
root permissions under Sys V...
-- 
 Marc Mengel	

 attmail!mmengel
 ...!{moss|lll-crg|mtune|ihnp4}!cuuxb!mmengel
Technical Details
Message-ID: <1797@cuuxb.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!cuuxb!mmengel
References: <532@etn-rad.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!cuuxb!mmengel
From: mmengel@cuuxb.ATT.COM (~XT4103000~Marc Mengel~C25~G25~6184~)
Newsgroups: comp.bugs.sys5
Subject: Re: /etc/link problem via /etc/mvdir
Message-ID: <1797@cuuxb.ATT.COM>
Date: 23 May 88 14:07:17 GMT
References: <532@etn-rad.UUCP>
Reply-To: mmengel@cuuxb.UUCP (PUT YOUR NAME HERE)
Organization: AT&T, Data Systems Group, Lisle, IL
Lines: 26