]> arthur.barton.de Git - bup.git/commit
Quash stat(2) st_rdev unless we're going to need it for mknod().
authorRob Browning <rlb@defaultvalue.org>
Tue, 17 Sep 2013 01:47:28 +0000 (20:47 -0500)
committerRob Browning <rlb@defaultvalue.org>
Wed, 18 Sep 2013 17:30:33 +0000 (12:30 -0500)
commit63321edab5257c424f112141c451017d7b9bcb2e
tree4d4bc58a647723d1699943dc360c1a631c85dd2d
parent9040b7b93ba2b3f3a7751a15e78834bc47ce4d1d
Quash stat(2) st_rdev unless we're going to need it for mknod().

On some platforms (i.e. kFreeBSD), the st_rdev value isn't completely
stable.  For example, given "date > foo; cp -a foo foo-2", the st_rdev
value may differ between the two files.

Since we only need the st_rdev value for the call to mknod() when
restoring character and block special files, set it to zero for
anything else.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/metadata.py