Re: opencvs - fix update -r and -A
On Fri, Oct 14, 2016 at 09:24:03AM -0600, Todd C. Miller wrote: > On Fri, 14 Oct 2016 16:17:45 +0200, Joris Vink wrote: > > > In certain cases update -r and update -A would not properly set or reset > > the sticky tag for file(s). This patch fixes that problem. > > After reading through the applicable parts of update.c I'm fairly > certain this is correct. OK millert@ Commited, thanks!
Re: opencvs - fix update -r and -A
On Fri, 14 Oct 2016 16:17:45 +0200, Joris Vink wrote: > In certain cases update -r and update -A would not properly set or reset > the sticky tag for file(s). This patch fixes that problem. After reading through the applicable parts of update.c I'm fairly certain this is correct. OK millert@ - todd
opencvs - fix update -r and -A
Hi, In certain cases update -r and update -A would not properly set or reset the sticky tag for file(s). This patch fixes that problem. .joris Index: update.c === RCS file: /cvs/src/usr.bin/cvs/update.c,v retrieving revision 1.172 diff -u -p -r1.172 update.c --- update.c13 Oct 2016 20:51:25 - 1.172 +++ update.c14 Oct 2016 14:13:11 - @@ -480,10 +480,8 @@ cvs_update_local(struct cvs_file *cf) if (cvs_cmdop != CVS_OP_UPDATE) break; - if (reset_tag != 1 && reset_option != 1) - break; - - if (cf->file_ent != NULL && cf->file_ent->ce_tag == NULL) + if (reset_tag != 1 && reset_option != 1 && + cvs_specified_tag == NULL && cvs_specified_date == -1) break; if (cf->file_rcs->rf_dead != 1 &&