mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-25 02:06:04 +02:00 
			
		
		
		
	Merge pull request #256 from syvex/hotfix/UnixFileCopyPermissions
Preserve file permissions on Unix FileImpl::copyToImpl
This commit is contained in:
		| @@ -341,7 +341,7 @@ void FileImpl::copyToImpl(const std::string& path) const | |||||||
| 	} | 	} | ||||||
| 	const long blockSize = st.st_blksize; | 	const long blockSize = st.st_blksize; | ||||||
|  |  | ||||||
| 	int dd = open(path.c_str(), O_CREAT | O_TRUNC | O_WRONLY, st.st_mode & S_IRWXU); | 	int dd = open(path.c_str(), O_CREAT | O_TRUNC | O_WRONLY, st.st_mode); | ||||||
| 	if (dd == -1) | 	if (dd == -1) | ||||||
| 	{ | 	{ | ||||||
| 		close(sd); | 		close(sd); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Günter Obiltschnig
					Günter Obiltschnig