🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #516

Re: Unlinking "."

#516
From: gwyn
Date: Wed, 01 Apr 1987 22:56
13 lines
1219 bytes
In article <1059@cci632.UUCP> rrw@cci632.UUCP (Rick Wessman) writes:
>In our version of Unix*, PERPOS**, it is legal to remove ".", and there
>is a raging controversy about whether it should be.

Since directories in the Unix file system are required to have "."
and ".." entries, it does not make sense to permit their removal.

The best solution would seem to be to use system calls to create
and remove directories, instead of super-user privileged processes
that invoke link(2) and unlink(2).  This also lets you avoid race
conditions that the latter approach is heir to.

Current BSD and System V releases have mkdir(2) and rmdir(2) calls.
Technical Details
Message-ID: <5715@brl-smoke.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!brl-adm!brl-smoke!gwyn
References: <1059@cci632.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!brl-adm!brl-smoke!gwyn
From: gwyn@brl-smoke.UUCP
Newsgroups: comp.bugs.sys5
Subject: Re: Unlinking "."
Message-ID: <5715@brl-smoke.ARPA>
Date: Wed, 1-Apr-87 17:56:43 EST
Article-I.D.: brl-smok.5715
Posted: Wed Apr  1 17:56:43 1987
Date-Received: Sat, 4-Apr-87 08:22:50 EST
References: <1059@cci632.UUCP>
Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 13
Keywords: unlink