From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-arch/tar/files: tar-1.24-device-node.patch |
Date: | Mon, 01 Nov 2010 14:52:58 |
Message-Id: | 20101101145255.99C032003C@flycatcher.gentoo.org |
1 | ssuominen 10/11/01 14:52:55 |
2 | |
3 | Added: tar-1.24-device-node.patch |
4 | Log: |
5 | Fix extraction of device nodes wrt #343245 by Albert W. Hopkins. |
6 | |
7 | (Portage version: 2.2.0_alpha1/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-arch/tar/files/tar-1.24-device-node.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/tar/files/tar-1.24-device-node.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/tar/files/tar-1.24-device-node.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: tar-1.24-device-node.patch |
16 | =================================================================== |
17 | From 3913675640f65bb4774429d369681957b528996e Mon Sep 17 00:00:00 2001 |
18 | From: Sergey Poznyakoff <gray@×××××××.ua> |
19 | Date: Mon, 01 Nov 2010 13:04:41 +0000 |
20 | Subject: Fix extraction of device nodes. |
21 | |
22 | * src/extract.c (extract_node): Do not mask out node type. |
23 | The bug was introduced in commit ea964cce. |
24 | --- |
25 | diff --git a/src/extract.c b/src/extract.c |
26 | index 44233b9..6711f87 100644 |
27 | --- a/src/extract.c |
28 | +++ b/src/extract.c |
29 | @@ -1205,7 +1205,7 @@ static int |
30 | extract_node (char *file_name, int typeflag) |
31 | { |
32 | bool interdir_made = false; |
33 | - mode_t mode = (current_stat_info.stat.st_mode & MODE_RWX |
34 | + mode_t mode = (current_stat_info.stat.st_mode & (MODE_RWX | S_IFBLK | S_IFCHR) |
35 | & ~ (0 < same_owner_option ? S_IRWXG | S_IRWXO : 0)); |
36 | |
37 | while (mknodat (chdir_fd, file_name, mode, current_stat_info.stat.st_rdev) |
38 | -- |
39 | cgit v0.8.3.2 |