Quash stat(2) st_rdev unless we're going to need it for mknod().
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 <1dc5917c2adeeba13d1ef33dbb40691a1b67cc65@defaultvalue.org>

gevaerts/bup,ToxicFrog/bup,gevaerts/bup,mhoeher/bup,pombredanne/bup,tjanez/bup,jbaber/bup,jbaber/bup,ToxicFrog/bup,tjanez/bup,tjanez/bup,gevaerts/bup,jbaber/bup,mhoeher/bup,pombredanne/bup,mhoeher/bup,ToxicFrog/bup,gevaerts/bup,ToxicFrog/bup,tjanez/bup,mhoeher/bup,mhoeher/bup,jbaber/bup,pombredanne/bup,jbaber/bup,mhoeher/bup,pombredanne/bup,ToxicFrog/bup,pombredanne/bup,gevaerts/bup,pombredanne/bup,jbaber/bup,tjanez/bup,tjanez/bup