all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 39d8e2b20a2b5410c8a117b33edb93e4aa011da8 766 bytes (raw)
name: packages/patches/tar-d_ino_in_dirent-fix.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
commit e9ddc08da0982f36581ae5a8c7763453ff41cfe8
Author: Sergey Poznyakoff <gray@gnu.org>
Date:   Thu Sep 25 00:22:16 2014 +0300

    Bugfixes.
    
    * doc/tar.1: Fix typo in font spec.
    * src/tar.c (sort_mode_arg, sort_mode_flag): Protect "inode"
    (SAVEDIR_SORT_INODE) with D_INO_IN_DIRENT

diff --git a/src/tar.c b/src/tar.c
index 225c624..f8102e0 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -1341,14 +1341,18 @@ static char filename_terminator;
 static char const *const sort_mode_arg[] = {
   "none",
   "name",
+#if D_INO_IN_DIRENT
   "inode",
+#endif
   NULL
 };
 
 static int sort_mode_flag[] = {
     SAVEDIR_SORT_NONE,
     SAVEDIR_SORT_NAME,
+#if D_INO_IN_DIRENT
     SAVEDIR_SORT_INODE
+#endif
 };
 
 ARGMATCH_VERIFY (sort_mode_arg, sort_mode_flag);

debug log:

solving 39d8e2b20a2b5410c8a117b33edb93e4aa011da8 ...
found 39d8e2b20a2b5410c8a117b33edb93e4aa011da8 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.