Browse Source
			
			
			Merge pull request #579 from trapexit/freebsd
			
				remove O_LARGEFILE
			
			
				pull/580/head
			
			
		 
		
			
				
					
						 trapexit
					
					7 years ago
						trapexit
					
					7 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 4AEE18F83AFDEB23
				  	
				  
				
			
		
		
		
	
		
			
				 1 changed files with 
2 additions and 
2 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/fs_cow.cpp
				
					
					
						
							
								
									
										
											
	
		
			
				
					|  |  | @ -104,13 +104,13 @@ namespace fs | 
			
		
	
		
			
				
					|  |  |  |       int dst_fd; | 
			
		
	
		
			
				
					|  |  |  |       string dst_fullpath; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       src_fd = fs::open(src_fullpath_,O_RDONLY|O_NOFOLLOW|O_LARGEFILE); | 
			
		
	
		
			
				
					|  |  |  |       src_fd = fs::open(src_fullpath_,O_RDONLY|O_NOFOLLOW); | 
			
		
	
		
			
				
					|  |  |  |       if(src_fd == -1) | 
			
		
	
		
			
				
					|  |  |  |         return -1; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       dst_fullpath = src_fullpath_; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       dst_fd = fs::mktemp(dst_fullpath,O_WRONLY|O_LARGEFILE); | 
			
		
	
		
			
				
					|  |  |  |       dst_fd = fs::mktemp(dst_fullpath,O_WRONLY); | 
			
		
	
		
			
				
					|  |  |  |       if(dst_fd == -1) | 
			
		
	
		
			
				
					|  |  |  |         return cleanup_on_error(src_fd); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | 
 |