Changeset - r24336:f644ba6777e5
[Not reviewed]
master
0 1 0
Niels Martin Hansen - 4 years ago 2020-07-28 16:22:11
nielsm@indvikleren.dk
Change: Log when rejecting a TAR archive for extraction

Based on report in <https://www.tt-forums.net/viewtopic.php?f=31&t=87374>;
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -929,7 +929,10 @@ bool ExtractTar(const char *tar_filename
 
	const char *dirname = (*it).second.dirname;
 

	
 
	/* The file doesn't have a sub directory! */
 
	if (dirname == nullptr) return false;
 
	if (dirname == nullptr) {
 
		DEBUG(misc, 1, "Extracting %s failed; archive rejected, the contents must be in a sub directory", tar_filename);
 
		return false;
 
	}
 

	
 
	char filename[MAX_PATH];
 
	strecpy(filename, tar_filename, lastof(filename));
0 comments (0 inline, 0 general)