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 acl support
details: https://anonhg.NetBSD.org/src/rev/9d7d5957e18a
branches: trunk
changeset: 777896:9d7d5957e18a
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 08 20:46:59 2012 +0000
description:
add acl support
diffstat:
external/gpl2/xcvs/dist/src/log.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diffs (29 lines):
diff -r 5b1c58122a86 -r 9d7d5957e18a external/gpl2/xcvs/dist/src/log.c
--- a/external/gpl2/xcvs/dist/src/log.c Thu Mar 08 20:46:35 2012 +0000
+++ b/external/gpl2/xcvs/dist/src/log.c Thu Mar 08 20:46:59 2012 +0000
@@ -834,6 +834,25 @@
return 1;
}
+/* cvsacl patch */
+#ifdef SERVER_SUPPORT
+ if (use_cvs_acl /* && server_active */)
+ {
+ if (!access_allowed (finfo->file, finfo->repository, NULL, 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
+
if (log_data->sup_header || !log_data->nameonly)
{
Home |
Main Index |
Thread Index |
Old Index