DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH] unfs3: Fix generation of export list
@ 2021-03-11 17:38 Uwe Kleine-König
  2021-03-11 17:52 ` Robert Schwebel
  2021-04-25 15:30 ` Roland Hieber
  0 siblings, 2 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2021-03-11 17:38 UTC (permalink / raw)
  To: distrokit

Before this change the content of the export list is by default:

	/ (rw,no_root_squash),insecure

which is wrong. The closing parenthesis must be after the insecure
keyword.

It seems I'm the first user of unfs3 in the v7a platform since 2016.

Fixes: c17c88e05a88 ("platform: beaglebone: nfs: add insecure option")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh b/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh
index 5a95628b5324..58f100d95f70 100644
--- a/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh
+++ b/configs/platform-v7a/scripts/lib/ptxd_make_nfsd.sh
@@ -25,7 +25,7 @@ ptxd_make_nfsd_exec() {
     echo
 
     #insecure for qemu with -net user
-    client_specifications="${client_specifications},insecure"
+    client_specifications="${client_specifications%)},insecure)"
     echo "/ ${client_specifications}" > "${PTXDIST_TEMPDIR}/exports" &&
     UNFS_BASE="${base}" unfsd -e "${PTXDIST_TEMPDIR}/exports" -n ${port} -m ${port} -p -d "${@}"
 }
-- 
2.30.1


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-25 16:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 17:38 [DistroKit] [PATCH] unfs3: Fix generation of export list Uwe Kleine-König
2021-03-11 17:52 ` Robert Schwebel
2021-04-25 15:30 ` Roland Hieber
2021-04-25 16:22   ` Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox