From: Timo Sirainen Date: Fri, 11 Jun 2010 14:56:27 +0000 (+0100) Subject: quota-fs, Solaris: Don't try to open quotas file with NFS mounts. X-Git-Tag: 2.0.beta6~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10ae1846ac55dda424467e7230f0f77e3434fa5c;p=thirdparty%2Fdovecot%2Fcore.git quota-fs, Solaris: Don't try to open quotas file with NFS mounts. --HG-- branch : HEAD --- 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);