# HG changeset patch # User Timo Sirainen # Date 1276268187 -3600 # Node ID edc7da213d4cc4e10b561231999840a45165747c # Parent 0b0cb71aea039670c71eaf47a77e5a6b895bd8c6 quota-fs, Solaris: Don't try to open quotas file with NFS mounts. diff -r 0b0cb71aea03 -r edc7da213d4c src/plugins/quota/quota-fs.c --- a/src/plugins/quota/quota-fs.c Fri Jun 11 15:03:22 2010 +0100 +++ b/src/plugins/quota/quota-fs.c Fri Jun 11 15:56:27 2010 +0100 @@ -209,6 +209,11 @@ 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);