SHA256
1
0
forked from pool/tar
Files
tar/bsc1202436.patch
Antonio Teixeira cf451a6671 - Updated tar-fix-extract-unlink.patch
* Replace patch with an equivalent upstreamed commit
  * Fixes bsc#1225407

OBS-URL: https://build.opensuse.org/package/show/Base:System/tar?expand=0&rev=133
2024-07-15 19:01:42 +00:00

15 lines
435 B
Diff

diff --git a/src/extract.c b/src/extract.c
index 37ab2956..b70b6c2f 100644
--- a/src/extract.c
+++ b/src/extract.c
@@ -854,6 +854,9 @@ maybe_recoverable (char *file_name, bool regular, bool *interdir_made)
case EEXIST:
/* Remove an old file, if the options allow this. */
+ if (strlen(file_name) == 1 && *file_name == '.')
+ return RECOVER_NO;
+
switch (old_files_option)
{
case SKIP_OLD_FILES: