summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat/fstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/fstat/fstat.c')
-rw-r--r--usr.bin/fstat/fstat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c
index 3a08f64..9d26aea 100644
--- a/usr.bin/fstat/fstat.c
+++ b/usr.bin/fstat/fstat.c
@@ -599,7 +599,11 @@ ufs_filestat(vp, fsp)
fsp->fileid = (long)inode.i_number;
fsp->mode = (mode_t)inode.i_mode;
fsp->size = (u_long)inode.i_size;
+#if should_be_but_is_hard
fsp->rdev = inode.i_rdev;
+#else
+ fsp->rdev = 0;
+#endif
return 1;
}
OpenPOWER on IntegriCloud