mirror of
				https://git.proxmox.com/git/libgit2
				synced 2025-10-31 12:55:26 +00:00 
			
		
		
		
	win32: deduplicate code: use p_open in p_creat
Signed-off-by: Sven Strickroth <email@cs-ware.de>
This commit is contained in:
		
							parent
							
								
									ef5cfcdb4f
								
							
						
					
					
						commit
						92d5a6377a
					
				| @ -520,14 +520,7 @@ int p_open(const char *path, int flags, ...) | ||||
| 
 | ||||
| int p_creat(const char *path, mode_t mode) | ||||
| { | ||||
| 	git_win32_path buf; | ||||
| 
 | ||||
| 	if (git_win32_path_from_utf8(buf, path) < 0) | ||||
| 		return -1; | ||||
| 
 | ||||
| 	return _wopen(buf, | ||||
| 		_O_WRONLY | _O_CREAT | _O_TRUNC | STANDARD_OPEN_FLAGS, | ||||
| 		mode & WIN32_MODE_MASK); | ||||
| 	return p_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode); | ||||
| } | ||||
| 
 | ||||
| int p_getcwd(char *buffer_out, size_t size) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Sven Strickroth
						Sven Strickroth