Blob Blame History Raw
From 8b6ce13e1b196cb9d0cc5b24dfc75c97a9eb883d Mon Sep 17 00:00:00 2001
From: Jan Kara <jack@suse.cz>
Date: Mon, 20 Aug 2012 19:16:05 +0200
Subject: [PATCH] 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>
---
 rquota_client.c | 1 -
 1 file changed, 1 deletion(-)

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) &&
-- 
1.7.11.4