]> granicus.if.org Git - strace/commitdiff
quotactl: fix Q_QUOTAON command decoding
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 18 Jan 2016 21:53:54 +0000 (21:53 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 19 Jan 2016 01:43:24 +0000 (01:43 +0000)
* quota.c (SYS_FUNC(quotactl)): Print Q_QUOTAON 4th argument as a path.

quota.c

diff --git a/quota.c b/quota.c
index 3255a89c6425bfa3a721ecc7ede06ba721b90d2b..8ded370f34eb9d002aa7e1bc4e59877c9da441b1 100644 (file)
--- a/quota.c
+++ b/quota.c
@@ -410,10 +410,12 @@ SYS_FUNC(quotactl)
                printpath(tcp, tcp->u_arg[1]);
                tprints(", ");
                switch (cmd) {
-                       case Q_V1_QUOTAON:
                        case Q_QUOTAON:
+                       case Q_V1_QUOTAON:
                                printxval(quota_formats, id, "QFMT_VFS_???");
-                               break;
+                               tprints(", ");
+                               printpath(tcp, tcp->u_arg[3]);
+                               return RVAL_DECODED;
                        case Q_SETQLIM:
                        case Q_SETQUOTA:
                        case Q_V1_SETQUOTA: