cvs commit: patches/viewcvs viewcvs-dev-permissions-1.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Wed Jun 23 23:26:27 PDT 2004


jim         04/06/24 00:26:27

  Added:       viewcvs  viewcvs-dev-permissions-1.patch
  Log:
  Added: viewcvs-dev-permissions-1.patch
  
  Revision  Changes    Path
  1.1                  patches/viewcvs/viewcvs-dev-permissions-1.patch
  
  Index: viewcvs-dev-permissions-1.patch
  ===================================================================
  Submitted By:            Matthew Burgess <matthew at linuxfromscratch dot org>
  Date:                    2004-06-23
  Initial Package Version: CVS checkout on 2004-06-23
  Upstream Status:         Submitted - awaiting feedback
  Origin:                  Branden Robinson
                           (http://lists.debian.org/debian-devel/2003/08/msg02067.html)
  Description:             viewcvs doesn't use a umask when writing files under
                           the svn repository's db/ directory.  This causes access
                           via any other method (e.g. svn:// or svn+ssh://) to
                           fail with permission denied errors.
  
  
  diff -Naur viewcvs.orig/www/cgi/viewcvs.cgi viewcvs/www/cgi/viewcvs.cgi
  --- viewcvs.orig/www/cgi/viewcvs.cgi	2004-06-23 20:39:02.000000000 +0000
  +++ viewcvs/www/cgi/viewcvs.cgi	2004-06-23 20:40:17.000000000 +0000
  @@ -38,6 +38,7 @@
   # Adjust sys.path to include our library directory
   #
   
  +import os
   import sys
   
   if LIBRARY_DIR:
  @@ -55,4 +56,5 @@
   import sapi
   import viewcvs
   
  +os.umask(0002)
   viewcvs.main(sapi.CgiServer())
  
  
  



More information about the patches mailing list