Bug 78036

Summary: CVSUP ignores chflags
Product: Ports & Packages Reporter: Johannes Weiner <hnaz>
Component: Individual Port(s)Assignee: John Polstra <jdp>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Johannes Weiner 2005-02-24 18:10:18 UTC
CVSUP seems to ignore file chflags. I set a schg flag on a file to protect from being updated by cvsup, but the file still gets updated.
I'm aware of the refuse system for cvsup now, but I think this is a security bug anyway.

[Bossmc can confirm and reproduce this also]

How-To-Repeat: echo foo > /usr/src/sys/bar
chflags schg /usr/src/sys/bar

then run cvsup for src-all with option 'delete' and /usr/src/sys/bar will be deleted.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-03-09 19:43:30 UTC
Responsible Changed
From-To: freebsd-bugs->jdp

Over to maintainer
Comment 2 John Polstra freebsd_committer freebsd_triage 2005-03-28 17:18:41 UTC
State Changed
From-To: open->closed

Sorry, but this behavior is by design.  CVSup is supposed to mirror 
a file tree as accurately as possible, and if it has to override the 
file flags to accomplish that then it will.  There should probably 
be an option to honor the file flags, but I'm not adding new 
features to CVSup these days.