Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Jan 2015 16:58:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 196435] Prevent @sample keyword from removing user symlinks
Message-ID:  <bug-196435-13-j5l7yYoVED@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-196435-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-196435-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196435

--- Comment #5 from Mathieu Arnold <mat@FreeBSD.org> ---
(In reply to Jan Beich from comment #4)
> This bug is about user-modified target_file. How the file was modified isn't
> limited to content but includes differnt filetypes as well such as being
> replaced by a symlink. It usually happens after package install but before
> deinstall.
> 
> Here're steps to reproduce:
> 
>   1/ install a port with @sample in pkg-plist
>   2/ replace target_file with a symlink to sample_file
>   3/ deinstall the port
>   4/ notice target_file now a symlink disappeared as well
> 
> or
> 
>   1/ find a port with @sample in pkg-plist
>   2/ create matching empty config but without .sample suffix
>   3/ swap it with a symlink
>   4/ install the port
>   5/ notice symlink destination is no longer empty

Well, yes, I'm ok with that, people do stupid things, people get themselves
shot in the foot.  As in, don't replace the regular file that has been
installed by a symlink, it's stupid. :-)

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196435-13-j5l7yYoVED>