diff options
author | Jim Meyering <jim@meyering.net> | 1998-01-03 16:47:21 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-01-03 16:47:21 +0000 |
commit | 1059e9672167f629e42f730462007cea9c63350c (patch) | |
tree | 9d79f7492310dedad57511b8c6334e0cfa2290ea /src/df.c | |
parent | 234ea051715aa6ab52d575c142626382306edbd6 (diff) | |
download | coreutils-1059e9672167f629e42f730462007cea9c63350c.tar.xz |
(show_dev): Treat `fsu.fsu_bavail == (unsigned long) -1'
just like `fsu.fsu_blocks == 0' as an indicator that usage information
is invalid. This happens with Solaris-5.5.1 CD-ROM partitions.
Diffstat (limited to 'src/df.c')
-rw-r--r-- | src/df.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -259,7 +259,7 @@ show_dev (const char *disk, const char *mount_point, const char *fstype) double blocks_percent_used; uintmax_t blocks_used; - if (fsu.fsu_blocks == 0) + if (fsu.fsu_blocks == 0 || fsu.fsu_bavail == (unsigned long) -1) { blocks_used = 0; fsu.fsu_bavail = 0; |