Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/xcvs/dist/src Add cvs acl support
details: https://anonhg.NetBSD.org/src/rev/6f1ea845ca7d
branches: trunk
changeset: 777884:6f1ea845ca7d
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 08 20:41:20 2012 +0000
description:
Add cvs acl support
diffstat:
external/gpl2/xcvs/dist/src/status.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diffs (30 lines):
diff -r 6f698b763b98 -r 6f1ea845ca7d external/gpl2/xcvs/dist/src/status.c
--- a/external/gpl2/xcvs/dist/src/status.c Thu Mar 08 20:41:04 2012 +0000
+++ b/external/gpl2/xcvs/dist/src/status.c Thu Mar 08 20:41:20 2012 +0000
@@ -127,6 +127,26 @@
Node *node;
status = Classify_File (finfo, NULL, NULL, NULL, 1, 0, &vers, 0);
+
+/* cvsacl patch */
+#ifdef SERVER_SUPPORT
+ if (use_cvs_acl /* && server_active */)
+ {
+ if (!access_allowed (finfo->file, finfo->repository, vers->tag, 5,
+ NULL, NULL, 1))
+ {
+ if (stop_at_first_permission_denied)
+ error (1, 0, "permission denied for %s",
+ Short_Repository (finfo->repository));
+ else
+ error (0, 0, "permission denied for %s/%s",
+ Short_Repository (finfo->repository), finfo->file);
+
+ return (0);
+ }
+ }
+#endif
+
sstat = "Classify Error";
switch (status)
{
Home |
Main Index |
Thread Index |
Old Index