From: Matthew Dillon Date: Wed, 1 Apr 2009 00:16:31 +0000 (-0700) Subject: cpdup: '#' in cpignore files is no longer interpreted as a comment. X-Git-Url: https://gitweb.dragonflybsd.org/~polachok/dragonfly.git/commitdiff_plain/c260943236095839a0bbe73688b38f5585493e2f cpdup: '#' in cpignore files is no longer interpreted as a comment. A '#' as the first character on a line in a cpignore file used to be interpreted as a comment. It is no just considered another valid character in a filename. Comments may no longer be represented in cpignore files. --- diff --git a/bin/cpdup/cpdup.c b/bin/cpdup/cpdup.c index 0c6c503763..f9fc3eb32c 100644 --- a/bin/cpdup/cpdup.c +++ b/bin/cpdup/cpdup.c @@ -893,7 +893,7 @@ relink: CountSourceReadBytes += l; if (l && buf[l-1] == '\n') buf[--l] = 0; - if (buf[0] && buf[0] != '#') + if (buf[0]) AddList(list, buf, 1); } fclose(fi); diff --git a/bin/cpdup/misc.c b/bin/cpdup/misc.c index 42ea09f4bd..a3e243e8bb 100644 --- a/bin/cpdup/misc.c +++ b/bin/cpdup/misc.c @@ -180,7 +180,7 @@ fatal(const char *ctl, ...) #endif " -x use .cpignore as exclusion file\n" " -X file specify exclusion file\n" - " Version 1.12 by Matt Dillon and Dima Ruban\n" + " Version 1.14 by Matt Dillon and Dima Ruban\n" ); exit(0); } else {