Module Name:    src
Committed By:   christos
Date:           Thu Mar  8 20:41:20 UTC 2012

Modified Files:
        src/external/gpl2/xcvs/dist/src: status.c

Log Message:
Add cvs acl support


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/xcvs/dist/src/status.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/status.c
diff -u src/external/gpl2/xcvs/dist/src/status.c:1.2 src/external/gpl2/xcvs/dist/src/status.c:1.3
--- src/external/gpl2/xcvs/dist/src/status.c:1.2	Fri Apr 10 07:20:30 2009
+++ src/external/gpl2/xcvs/dist/src/status.c	Thu Mar  8 15:41:20 2012
@@ -127,6 +127,26 @@ status_fileproc (void *callerdat, struct
     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)
     {

Reply via email to