From 10ae1846ac55dda424467e7230f0f77e3434fa5c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 11 Jun 2010 15:56:27 +0100 Subject: [PATCH] quota-fs, Solaris: Don't try to open quotas file with NFS mounts. --HG-- branch : HEAD --- src/plugins/quota/quota-fs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/quota/quota-fs.c b/src/plugins/quota/quota-fs.c index 5ae7616286..fa9e7daa33 100644 --- a/src/plugins/quota/quota-fs.c +++ b/src/plugins/quota/quota-fs.c @@ -224,6 +224,11 @@ static void fs_quota_mount_init(struct fs_quota_root *root, unsigned int i, count; #ifdef FS_QUOTA_SOLARIS +#ifdef HAVE_RQUOTA + if (strcmp(mount->type, "nfs") == 0) { + /* using rquota for this mount */ + } else +#endif if (mount->path == NULL) { mount->path = i_strconcat(mount->mount_path, "/quotas", NULL); mount->fd = open(mount->path, O_RDONLY); -- 2.47.3