We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21268a4 commit ed409caCopy full SHA for ed409ca
1 file changed
cpio-clean
@@ -7,6 +7,7 @@
7
# File timestamp is set to 1970-01-01T00:00:00
8
# uid/gid are set to root
9
# check field is zeroed
10
+# nlinks is set to zero, since the filesystem manages it
11
#
12
use warnings;
13
use strict;
@@ -114,6 +115,9 @@ for my $filename (sort keys %entries)
114
115
substr($entry, 6 + 16, 8) = $zero;
116
substr($entry, 6 + 24, 8) = $zero;
117
118
+ # zero out the nlinks, since it is managed by the real fs
119
+ substr($entry, 6 + 32, 8) = $zero;
120
+
121
# set check to zero
122
substr($entry, 6 + 96, 8) = $zero;
123
0 commit comments