Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA
Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!genrad!teddy!panda!talcott!harvard!seismo!brl-tgr!tgr!ron@BRL-TGR
From: Ron Natalie  
Newsgroups: net.unix
Subject: Re:  Problem with patch and infinit directories
Message-ID: <7500@brl-tgr.ARPA>
Date: Thu, 17-Jan-85 20:46:31 EST
Article-I.D.: brl-tgr.7500
Posted: Thu Jan 17 20:46:31 1985
Date-Received: Mon, 21-Jan-85 01:46:42 EST
Sender: news@brl-tgr.ARPA
Organization: Ballistic Research Lab
Lines: 25

>> The restriction about linking directories is built into
>> the link program.

>Not in 4.2BSD it's not!  I think it was in the 4.1 kernel as well.
>(I haven't seen any other kernel sources, so I wouldn't know about
>V6/V7/Sn.)

It is too!  I just linked up a directory like that with the following
program...

	main(argc, argv)
	int	argc;
	char	**argv;
	{
		if(argc != 3)  {
			printf("arg count\n");
			exit(1);
		}
		if(link(argv[1], argv[2]) == -1)  {
			perror("link");
		}
	}

I just looked at the code and it checks for IFMT == IF_DIR and
!suser()!