pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/39451 (bsdtar fails on Linux)



The following patch fixes the problem.

Index: archivers/libarchive/files/tar/write.c
===================================================================
RCS file: /cvsroot/pkgsrc/archivers/libarchive/files/tar/write.c,v
retrieving revision 1.1.1.5
diff -u -r1.1.1.5 write.c
--- archivers/libarchive/files/tar/write.c      14 Jul 2008 14:52:44 -0000      
1.1.1.5
+++ archivers/libarchive/files/tar/write.c      13 Sep 2008 07:20:15 -0000
@@ -720,7 +720,7 @@
                        continue;
 #endif
 
-#ifdef __linux
+#ifdef HAVE_EXT2FS_EXT2_FS_H
                /*
                 * Linux has a nodump flag too but to read it
                 * we have to open() the file/dir and do an ioctl on it...
@@ -909,7 +909,7 @@
                archive_entry_set_fflags(entry, st->st_flags, 0);
 #endif
 
-#ifdef __linux
+#ifdef HAVE_EXT2FS_EXT2_FS_H
        if ((S_ISREG(st->st_mode) || S_ISDIR(st->st_mode)) &&
            ((fd = open(accpath, O_RDONLY|O_NONBLOCK)) >= 0) &&
            ((r = ioctl(fd, EXT2_IOC_GETFLAGS, &stflags)), close(fd), (fd = 
-1), r) >= 0 &&

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index