Changeset 922 for dasscm/trunk/usr/bin
- Timestamp:
- Jul 29, 2010, 6:46:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dasscm/trunk/usr/bin/dasscm
r918 r922 201 201 my $DASSCM_CHECKOUT_USERNAME; 202 202 my $DASSCM_CHECKOUT_PASSWORD; 203 my $DASSCM_GID; 203 204 my @DASSCM_ADDITIONAL_FILES; 204 205 … … 414 415 415 416 #$svnOptions .= " --username $DASSCM_USERNAME " 417 418 # 419 # prepare file permissions 420 # (read-write access for group "dasscm", 421 # if this group exists) 422 # 423 (my $gname, my $gpw, $DASSCM_GID, my $members) = getgrnam( "dasscm" ); 424 if( $DASSCM_GID ) { 425 umask 0007 426 } 416 427 } 417 428 … … 736 747 my @array = @_; 737 748 749 if ( -e $filename && !-w $filename ) { 750 warning( "failed to write to $filename:", "permission denied" ); 751 return; 752 } 753 738 754 if ( !-w dirname($filename) ) { 739 warning( "failed to write to $filename ", "directory does not exist" );755 warning( "failed to write to $filename:", "directory does not exist" ); 740 756 return; 741 757 } … … 751 767 } 752 768 close(OUTFILE); 769 770 # if group dasscm exists, 771 # create plugin results with group membership dasscm 772 if( $DASSCM_GID ) { 773 chown( -1, $DASSCM_GID, $filename ); 774 } 753 775 754 776 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.