summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/parseinfo.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-03-10 13:40:57 +0000
committerpeter <peter@FreeBSD.org>1998-03-10 13:40:57 +0000
commit0c111e2b51cac7eead56494b30c5977e4ec9a8ea (patch)
treef60b0014663435c30f2efea2b10ca4f8ecc0208c /contrib/cvs/src/parseinfo.c
parentc3a8ee0e80a59793349940056dfd14746ebd4905 (diff)
downloadFreeBSD-src-0c111e2b51cac7eead56494b30c5977e4ec9a8ea.zip
FreeBSD-src-0c111e2b51cac7eead56494b30c5977e4ec9a8ea.tar.gz
Import cvs-1.9.26 onto vendor branch
Diffstat (limited to 'contrib/cvs/src/parseinfo.c')
-rw-r--r--contrib/cvs/src/parseinfo.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/cvs/src/parseinfo.c b/contrib/cvs/src/parseinfo.c
index c492be0..a8a1b4a 100644
--- a/contrib/cvs/src/parseinfo.c
+++ b/contrib/cvs/src/parseinfo.c
@@ -326,6 +326,26 @@ parse_config (cvsroot)
goto error_return;
}
}
+ else if (strcmp (line, "PreservePermissions") == 0)
+ {
+ if (strcmp (p, "no") == 0)
+ preserve_perms = 0;
+ else if (strcmp (p, "yes") == 0)
+ {
+#ifdef PRESERVE_PERMISSIONS_SUPPORT
+ preserve_perms = 1;
+#else
+ error (0, 0, "\
+warning: this CVS does not support PreservePermissions");
+#endif
+ }
+ else
+ {
+ error (0, 0, "unrecognized value '%s' for PreservePermissions",
+ p);
+ goto error_return;
+ }
+ }
else
{
/* We may be dealing with a keyword which was added in a
OpenPOWER on IntegriCloud