Subject: Re: chmod & symlink broken in 1.6
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Quentin Garnier <netbsd@quatriemek.com>
List: tech-kern
Date: 10/29/2002 15:05:10
Le Tue, 29 Oct 2002 14:52:20 +0100 (MET)
Hubert Feyrer a écrit :
> On Tue, 29 Oct 2002, Matthew Mondor wrote:
> > > Uh, what kind of excuse is this to not work as expected?
> > > What do I miss?
> >
> > Well, permissions are then set on the symbolic link, not the files
> > they point to, precisely. Because the permissions of the link itself
> > may become relevant with symperm enabled mounts.
> 
> As far as I understand, the default is sysperm disabled, and I have not
> added that flag.

Using -current's chmod resumes the correct behaviour. The patch is,
well... tiny.

cube

--- chmod.c	Mon Sep 17 12:16:41 2001
+++ ../../../../current/src/bin/chmod/chmod.c	Tue Jul  9 12:04:05 2002
@@ -142,7 +142,8 @@
 			fts_options &= ~FTS_PHYSICAL;
 			fts_options |= FTS_LOGICAL;
 		}
-	}
+	} else if (!hflag)
+		fts_options |= FTS_COMFOLLOW;
 	if (hflag)
 		change_mode = lchmod;
 	else

-- 
That's how I did it, Anton. I never saved anything
for the swim back.
Vincent/Jerome, in Gattaca.