Subject: Re: bin/37549: ssshfs in netbsd-4 creates wrong symlinks
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Antti Kantee <pooka@cs.hut.fi>
List: netbsd-bugs
Date: 12/16/2007 20:20:02
The following reply was made to PR bin/37549; it has been noted by GNATS.
From: Antti Kantee <pooka@cs.hut.fi>
To: dieter.NetBSD@pandora.be
Cc: gnats-bugs@NetBSD.org
Subject: Re: bin/37549: ssshfs in netbsd-4 creates wrong symlinks
Date: Sun, 16 Dec 2007 22:15:08 +0200
On Sun Dec 16 2007 at 20:05:03 +0000, dieter roelants wrote:
> > The strcpy() is unnecessary. Otherwise this patch is good. Can you
> > test & submit one which just uses link_target directly?
>
> I did that first, but that doesn't build without warnings because
> link_target is const in the function signature. And that can't be
> easily adapted, I think, because it's expanded from PUFFSVN_PROTOS.
> Suggestions?
Just __UNCONST() it.
--
Antti Kantee <pooka@iki.fi> Of course he runs NetBSD
http://www.iki.fi/pooka/ http://www.NetBSD.org/
"la qualité la plus indispensable du cuisinier est l'exactitude"