Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4130:f309f5d124dc HEAD
stat() the mount point paths instead of the devices to find out where the
mount point is.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 02 Apr 2006 20:42:30 +0300 |
parents | 632b3117aecc |
children | c12bb541f925 |
files | src/plugins/quota/quota-fs.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota-fs.c Sun Apr 02 20:02:33 2006 +0300 +++ b/src/plugins/quota/quota-fs.c Sun Apr 02 20:42:30 2006 +0300 @@ -139,7 +139,7 @@ strcmp(ent.mnt_fstype, MNTTYPE_IGNORE) == 0) continue; - if (stat(ent.mnt_special, &st2) == 0 && + if (stat(ent.mnt_mountp, &st2) == 0 && CMP_DEV_T(st.st_dev, st2.st_dev)) { device_path = ent.mnt_special; mount_path = ent.mnt_mountp; @@ -158,7 +158,7 @@ strcmp(ent->mnt_type, MNTTYPE_IGNORE) == 0) continue; - if (stat(ent->mnt_fsname, &st2) == 0 && + if (stat(ent->mnt_dir, &st2) == 0 && CMP_DEV_T(st.st_dev, st2.st_dev)) { device_path = ent->mnt_fsname; mount_path = ent->mnt_dir;