[comp.unix.wizards] linking directories

eric@magic4.UUCP (Eric Kozowski) (03/11/88)

Is it possible to link directories on Sys V 3.1?  The directories are in two
different file systems ( one is actually an RFS file system).

Thanks.


-- 
Eric Kozowski  AT&T GBS  Portland, Or        || I've made enough money to buy
(503)295-4250  2020 SW 4th  Suite 500 97201  || Miami, but I pissed it away 
UUCP: ...!tektronix!tessi!bucket!magic4!eric || so fast ...
All of the above opinions are mine           || -- Jimmy Buffet            

gwyn@brl-smoke.ARPA (Doug Gwyn ) (03/13/88)

In article <166@magic4.UUCP> eric@magic4.UUCP (Eric Kozowski) writes:
>Is it possible to link directories on Sys V 3.1?  The directories are in two
>different file systems ( one is actually an RFS file system).

No, cross-device links are not supported.  Berkeley-like symbolic links
may appear in some future release of UNIX System V, but aren't in SVR3.

dg@lakart.UUCP (David Goodenough) (05/03/88)

From article <1236@zen.UUCP>, by vic@zen.UUCP (Victor Gavin):
> ..... much stuff deleted .....
> ps Why do you have to be super-user to link directories?

Consider the following:

% cd /u2/dg
% mkdir foo
% mkdir foo/barf
% mkdir foo/barf/gag
% unlink ..			; UGH NUMBER 1
% ln /u2/dg/foo/barf/gag ..	; UGH NUMBER 2
% pwd

OOPS - Looks like we have a loop in the directory structure - pwd is going
to have a nervous breakdown.

In general the damage that can be done by linking and unlinking directories
is just too horrific to think about.
-- 
	dg@lakart.UUCP - David Goodenough		+---+
							| +-+-+
	....... !harvard!adelie!cfisun!lakart!dg	+-+-+ |
						  	  +---+