Skip to contentSkip to conversation

fix xfs_admin command PATH

PATCH New Nathan Scott 1 participant 1 message Sep 28, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix xfs_admin command PATH

Hi,

I noticed an error labelling a filesystem on Fedora the other day, this should fix it. Possibly other scripts are affected, dunno - the problem occurs when /usr/sbin is not in the PATH (it typically happens after a su to root).

cheers.

--
Nathan

fedora/usr/sbin/xfs_admin renamed from fedora/usr/sbin/xfs_admin.orig +1 -0
@@ -33,6 +33,7 @@
 
 OPTS=""
 USAGE="Usage: xfs_admin [-efluV] [-L label] [-U uuid] special"
+export PATH="/sbin:/usr/sbin:$PATH"
 
 while getopts "efluL:U:V" c
 do