|
From: | Paul Eggert |
Subject: | Re: [Bug-tar] [GNU tar 1.26] testsuite: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 30 31 34 36 38 39 40 42 43 44 45 46 47 48 49 51 52 53 54 55 57 58 59 60 61 62 64 65 66 67 68 69 71 72 73 74 79 80 81 82 83 84 85 87 90 91 92 |
Date: | Thu, 18 Aug 2011 10:28:34 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 |
On 08/18/2011 09:46 AM, Kevin Brott wrote: > Looks like tar isn't putting anything but zero-byte files into the archives Thanks for the truss output. I expect that it's this line in src/create.c:1639 else if (fstatat (parentfd, name, &st->stat, fstatat_flags) != 0) Could you please run a debugger like GDB and step through that line with an offending test case? My suspicion is that fstatat is incorrectly reporting that the file size is zero. If so, can you explain how fstatat is implemented on your system? Is the code using the gnulib replacement, or is fstatat implemented via system's C library, or what? If you can't run a debugger, simply insert some printf statements and print st->stat.st_size right after the successful fstatat.
[Prev in Thread] | Current Thread | [Next in Thread] |