Module Name: src Committed By: christos Date: Thu Mar 8 20:46:59 UTC 2012
Modified Files: src/external/gpl2/xcvs/dist/src: log.c Log Message: add acl support To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/xcvs/dist/src/log.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl2/xcvs/dist/src/log.c diff -u src/external/gpl2/xcvs/dist/src/log.c:1.2 src/external/gpl2/xcvs/dist/src/log.c:1.3 --- src/external/gpl2/xcvs/dist/src/log.c:1.2 Fri Apr 10 07:20:30 2009 +++ src/external/gpl2/xcvs/dist/src/log.c Thu Mar 8 15:46:59 2012 @@ -834,6 +834,25 @@ log_fileproc (void *callerdat, struct fi 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) {