common/quota: Fix _qmount_options
diff mbox series

Message ID 20191105134320.26026-1-jack@suse.cz
State New
Headers show
Series
  • common/quota: Fix _qmount_options
Related show

Commit Message

Jan Kara Nov. 5, 2019, 1:43 p.m. UTC
_qmount_options didn't properly substitute usrjquota and grpjquota
options. Fix the regular expression.

Signed-off-by: Jan Kara <jack@suse.cz>
---
 common/quota | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/common/quota b/common/quota
index 6d1948bf357e..4e07fef15697 100644
--- a/common/quota
+++ b/common/quota
@@ -229,10 +229,10 @@  _qmount_option()
 	export MOUNT_OPTIONS=`echo $MOUNT_OPTIONS \
 	| sed   -e 's/uquota/QUOTA/g'      \
 		-e 's/usrquota/QUOTA/g'    \
-		-e 's/usrjquota=[^, ]/QUOTA/g' \
+		-e 's/usrjquota=[^, ]*/QUOTA/g' \
 		-e 's/gquota/QUOTA/g'      \
 		-e 's/grpquota/QUOTA/g'    \
-		-e 's/grpjquota=[^, ]/QUOTA/g' \
+		-e 's/grpjquota=[^, ]*/QUOTA/g' \
 		-e 's/\bpquota/QUOTA/g'    \
 		-e 's/prjquota/QUOTA/g'    \
 		-e 's/quota/QUOTA/g'       \