public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make xfs_info work on mountpoints with spaces
@ 2007-11-29  4:03 Eric Sandeen
  0 siblings, 0 replies; only message in thread
From: Eric Sandeen @ 2007-11-29  4:03 UTC (permalink / raw)
  To: xfs-oss

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:

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

---

--- xfs-cmds.orig/xfsprogs/growfs/xfs_info.sh	2007-11-28 09:14:02.000000000 -0600
+++ xfs-cmds/xfsprogs/growfs/xfs_info.sh	2007-11-28 09:21:49.000000000 -0600
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-29  4:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29  4:03 [PATCH] make xfs_info work on mountpoints with spaces Eric Sandeen

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