summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2012-08-20 19:16:05 +0200
committerJan Kara <jack@suse.cz>2012-08-20 19:16:05 +0200
commit8b6ce13e1b196cb9d0cc5b24dfc75c97a9eb883d (patch)
tree8ba9e05398acfc912b44e232ad27afa7e0f76659
parent2ef32f7d7edf4cd3295a8a7828229487e37ea0f3 (diff)
downloadlinuxquota-8b6ce13e1b196cb9d0cc5b24dfc75c97a9eb883d.tar.gz
quota: Fix reporting of NFS mountpoints
Commit b8ab76ad19e3c284ac14bd0450662bfc41719e03 creating split_nfs_mount() forgot to remove zeroing of pathname character. That lead to broken reporting quotas for NFSv3 mount points. Thanks to anonymous reporter for spotting this. Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r--rquota_client.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/rquota_client.c b/rquota_client.c
index 54a8921..e26e066 100644
--- a/rquota_client.c
+++ b/rquota_client.c
@@ -162,7 +162,6 @@ int rpc_rquota_get(struct dquot *dquot)
return -ENOENT;
}
- *pathname++ = '\0';
/* For NFSv4, we send the filesystem path without initial /. Server prepends proper
* NFS pseudoroot automatically and uses this for detection of NFSv4 mounts. */
if ((dquot->dq_h->qh_io_flags & IOFL_NFS_MIXED_PATHS) &&