Skip to contentSkip to conversation

make xfs_info work on mountpoints with spaces

PATCH New Eric Sandeen 1 participant 1 message Nov 29, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make xfs_info work on mountpoints with spaces

I don't know why one would make mountpoints with spaces, but apparently people do:

[Bug 402621] New: xfs_info doesn't handle mountpoint with spaces
https://bugzilla.redhat.com/show_bug.cgi?id=402621

I'm no bash expert but I think this solves it:

---

xfsprogs/growfs/xfs_info.sh +2 -2
@@ -16,10 +16,10 @@
 		;;
 	esac
 done
-set -- extra $@
+set -- extra "$@"
 shift $OPTIND
 case $# in
-	1)	xfs_growfs -p xfs_info -n $OPTS $1
+	1)	xfs_growfs -p xfs_info -n $OPTS "$1"
 		status=$?
 		;;
 	*)	echo $USAGE 1>&2