[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tar is unable to extract device nodes.
From: |
Sergey Poznyakoff |
Subject: |
Tar is unable to extract device nodes. |
Date: |
Mon, 01 Nov 2010 15:19:43 +0200 |
The commit ea964cce broke extraction of device nodes. I have installed
the following patch to fix it.
In general, tar 1.24 proved to be a complete failure. I'm going to
make the bug-fix release asap.
Regards,
Sergey
>From 3913675640f65bb4774429d369681957b528996e Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <address@hidden>
Date: Mon, 1 Nov 2010 15:04:41 +0200
Subject: [PATCH] Fix extraction of device nodes.
* src/extract.c (extract_node): Do not mask out node type.
The bug was introduced in commit ea964cce.
---
src/extract.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/extract.c b/src/extract.c
index 44233b9..6711f87 100644
--- a/src/extract.c
+++ b/src/extract.c
@@ -1205,7 +1205,7 @@ static int
extract_node (char *file_name, int typeflag)
{
bool interdir_made = false;
- mode_t mode = (current_stat_info.stat.st_mode & MODE_RWX
+ mode_t mode = (current_stat_info.stat.st_mode & (MODE_RWX | S_IFBLK |
S_IFCHR)
& ~ (0 < same_owner_option ? S_IRWXG | S_IRWXO : 0));
while (mknodat (chdir_fd, file_name, mode, current_stat_info.stat.st_rdev)
--
1.6.0.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Tar is unable to extract device nodes.,
Sergey Poznyakoff <=