Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
Tar
Commits
c8a093c9
Commit
c8a093c9
authored
11 years ago
by
Bdale Garbee
Browse files
Options
Downloads
Patches
Plain Diff
fix hurd FTBFS
parent
742e8d86
Branches
Branches containing commit
Tags
debian/1.26+dfsg-8
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+7
-0
7 additions, 0 deletions
debian/changelog
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
debian/patches/upstream-hurd-fix
+36
-0
36 additions, 0 deletions
debian/patches/upstream-hurd-fix
with
44 additions
and
0 deletions
debian/changelog
+
7
−
0
View file @
c8a093c9
tar (1.26+dfsg-8) unstable; urgency=low
* cherry-pick upstream commit at Pino Toscano's suggestion to fix FTBFS
on hurd-i386, closes: #719863
-- Bdale Garbee <bdale@gag.com> Fri, 16 Aug 2013 11:37:40 +0200
tar (1.26+dfsg-7) unstable; urgency=low
* cherry-pick upstream commit at Marc Schaeffer's suggestion to fix
...
...
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
c8a093c9
...
...
@@ -4,3 +4,4 @@ listed03-linux-only
eglibc-2.16-ftbfs-gnulib-nogets
link-extraction-fix
upstream-compare-fix
upstream-hurd-fix
This diff is collapsed.
Click to expand it.
debian/patches/upstream-hurd-fix
0 → 100644
+
36
−
0
View file @
c8a093c9
>From 6689e8db4f53f6a0bed3d1bc4ed12d31eaa3bf51 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Tue, 17 Jan 2012 22:21:52 -0800
Subject: [PATCH] tar: port --overwrite symlink test to GNU/Hurd
Problem reported by Pino Toscano in
<http://lists.gnu.org/archive/html/bug-tar/2012-01/msg00040.html>.
* gnulib.modules: Add fcntl-h, which defines
HAVE_WORKING_O_NOFOLLOW.
* src/extract.c (open_output_file): Use HAVE_WORKING_O_NOFOLLOW,
not O_NOFOLLOW, when testing whther O_NOFOLLOW works.
This file is a placeholder. It will be replaced with the actual ChangeLog
by make dist. Run make ChangeLog if you wish to create it earlier.
---
gnulib.modules | 1 +
src/extract.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/extract.c b/src/extract.c
index 55f3eb8..bd5e7bf 100644
--- a/src/extract.c
+++ b/src/extract.c
@@ -887,7 +887,8 @@
open_output_file (char const *file_name, int typeflag, mode_t mode,
/* If O_NOFOLLOW is needed but does not work, check for a symlink
separately. There's a race condition, but that cannot be avoided
on hosts lacking O_NOFOLLOW. */
- if (! O_NOFOLLOW && overwriting_old_files && ! dereference_option)
+ if (! HAVE_WORKING_O_NOFOLLOW
+ && overwriting_old_files && ! dereference_option)
{
struct stat st;
if (fstatat (chdir_fd, file_name, &st, AT_SYMLINK_NOFOLLOW) == 0
--
1.7.10.4
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment