diff options
-rw-r--r-- | storeio/storeio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storeio/storeio.c b/storeio/storeio.c index 3990387c..0dfa74a2 100644 --- a/storeio/storeio.c +++ b/storeio/storeio.c @@ -251,7 +251,7 @@ trivfs_modify_stat (struct trivfs_protid *cred, struct stat *st) } st->st_mode &= ~S_IFMT; - st->st_mode |= S_IFCHR; + st->st_mode |= inhibit_cache ? S_IFCHR : S_IFBLK; st->st_rdev = rdev; if (readonly) st->st_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH); |