summaryrefslogtreecommitdiff
path: root/quotaio.c
diff options
context:
space:
mode:
Diffstat (limited to 'quotaio.c')
-rw-r--r--quotaio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/quotaio.c b/quotaio.c
index f1b36c7..5d227af 100644
--- a/quotaio.c
+++ b/quotaio.c
@@ -65,6 +65,8 @@ struct quota_handle *init_io(struct mntent *mnt, int type, int fmt)
goto out_handle;
if (!(mnt_fsname = get_device_name(mnt->mnt_fsname)))
goto out_handle;
+ if (stat(mnt_fsname, &h->qh_stat) < 0)
+ memset(&h->qh_stat, 0, sizeof(struct stat));
h->qh_io_flags = 0;
h->qh_type = type;
sstrncpy(h->qh_quotadev, mnt_fsname, sizeof(h->qh_quotadev));