Skip to contentSkip to conversation

exportfs: Missing comma in pnfs options

PATCH New Steve Dickson 1 participant 1 message Apr 6, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exportfs: Missing comma in pnfs options

From: Kelly Anderson <[email protected]>

Fix a missing comma in pnfs which get's written to etab, and then nfs-mountd sees an invalid option.

---
 support/nfs/exports.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
support/nfs/exports.c +1 -1
index 9b325b9..761a046 100644
@@ -275,7 +275,7 @@ putexportent(struct exportent *ep)
 		"no_" : "");
 	if (ep->e_flags & NFSEXP_NOREADDIRPLUS)
 		fprintf(fp, "nordirplus,");
-	fprintf(fp, "%spnfs", (ep->e_flags & NFSEXP_PNFS)? "" : "no_");
+	fprintf(fp, "%spnfs,", (ep->e_flags & NFSEXP_PNFS)? "" : "no_");
 	if (ep->e_flags & NFSEXP_FSID) {
 		fprintf(fp, "fsid=%d,", ep->e_fsid);
 	}
Signature · 1 line
2.1.0