summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2011-05-16 08:45:22 +0100
committerRichard Lowe <richlowe@richlowe.net>2011-05-16 08:45:22 +0100
commit834b3a435025f910a33a88cea7524186a6afe889 (patch)
tree0edad507818c34932c10843fa3b6dbb3dd6d8996 /usr/src
parent875546ac7519c97db0e3ce165c9b9d5147e27c8d (diff)
downloadillumos-joyent-834b3a435025f910a33a88cea7524186a6afe889.tar.gz
1630 quota(1M) relies on undefined operation order
Reviewed by: Dan McDonald <danmcd@nexenta.com> Reviewed by: Albert Lee <trisk@nexenta.com> Reviewed by: Eric Schrock <eric.schrock@delphix.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Approved by: Garrett D'Amore <garrett@nexenta.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/fs.d/ufs/quota/quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/fs.d/ufs/quota/quota.c b/usr/src/cmd/fs.d/ufs/quota/quota.c
index 615e3c8655..9cd622b7e1 100644
--- a/usr/src/cmd/fs.d/ufs/quota/quota.c
+++ b/usr/src/cmd/fs.d/ufs/quota/quota.c
@@ -289,8 +289,8 @@ showquotas(uid_t uid, char *name)
*/
if ((mntopt = hasmntopt(&mnt, MNTOPT_ZONE)) &&
(my_zonename[0] != '\0')) {
- mntopt += strcspn(mntopt, "=");
- if (strncmp(++mntopt, my_zonename,
+ mntopt += strcspn(mntopt, "=") + 1;
+ if (strncmp(mntopt, my_zonename,
strcspn(mntopt, ",")) != 0)
continue;
}