X-Original-To: alpine-devel@lists.alpinelinux.org Received: from varda.jlyo.net (varda.jlyo.net [69.28.91.113]) by lists.alpinelinux.org (Postfix) with ESMTP id AE9C25C55A4 for ; Tue, 14 Aug 2018 17:32:09 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=jlyo.org; s=varda; t=1534267929; bh=vyFdXkZyx9ZBzhUGMJEPnG0/UYVtvUzsRcBay/T16Hs=; h=Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To: User-Agent; b=yKK0i75Y6+dlNIbZ8O1QSvF9GiUDDk/hmwWybYUPH2e2kF1GsMYua9xSxk5djb5hZ bwJ51L1Tn7dWPezIgBEB3V4/c3f1Mf36KN7V/sEl3Iy1idim7LnQWwk5dKaf1BUlzh 3oPAGsLKeP4SbM3MXG2hf9B5bjYizbR7OfO84yOD7kXSB+YLPcWPC6NcnKTsyCVzwT 6pLFF9sKwyYs9V4gjfwId0KPvfha6a1n8GsDP2oCndaACtmOfQcbrydXyJj1fgXlwi Ww7KMPXZXvm73MyX8sj0JxGQJY25wI4P0WnCi06LYxGDI6+1XowJ7s2c7Glafsp5Ui v9MqBe+35u29g== Received: (qmail 7894 invoked by uid 1000); 14 Aug 2018 17:32:09 -0000 Date: Tue, 14 Aug 2018 12:32:09 -0500 From: Jesse Young To: timo.teras@iki.fi Cc: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH v2] apk-tools: archive: enable FIFO extraction Message-ID: <20180814173209.GA7887@varda.jlyo.org> References: <20180814175117.250dc182@vostro> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180814175117.250dc182@vostro> User-Agent: Mutt/1.10.1 (2018-07-13) --- src/archive.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/archive.c b/src/archive.c index 9196cb2..bc36ce7 100644 --- a/src/archive.c +++ b/src/archive.c @@ -300,6 +300,9 @@ int apk_tar_parse(struct apk_istream *is, apk_archive_entry_parser parser, case '5': /* directory */ entry.mode |= S_IFDIR; break; + case '6': /* fifo */ + entry.mode |= S_IFIFO; + break; case 'g': /* global pax header */ break; case 'x': /* file specific pax header */ @@ -477,11 +480,10 @@ int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae, if (r < 0) ret = -errno; atflags |= AT_SYMLINK_NOFOLLOW; break; - case S_IFSOCK: case S_IFBLK: case S_IFCHR: case S_IFIFO: - r = mknodat(atfd, fn, ae->mode & 07777, ae->device); + r = mknodat(atfd, fn, ae->mode, ae->device); if (r < 0) ret = -errno; break; } -- 2.18.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---