]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota-fs, Solaris: Don't try to open quotas file with NFS mounts.
authorTimo Sirainen <tss@iki.fi>
Fri, 11 Jun 2010 14:56:27 +0000 (15:56 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 11 Jun 2010 14:56:27 +0000 (15:56 +0100)
--HG--
branch : HEAD

src/plugins/quota/quota-fs.c

index 5ae7616286eddc0bd41e5acd9a78baf4001357a0..fa9e7daa338b2783cef54b0555307db68b275cc3 100644 (file)
@@ -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);