[PATCH] xfsprogs: use uid/gid instead of actual name to fix install issue
b19537 at freescale.com
b19537 at freescale.com
Fri Dec 23 00:52:53 CST 2011
From: Zhenhua Luo <b19537 at freescale.com>
> when running install-sh during the install process, following
error might appear:
> ../../install-sh -o bj -g bj -m 644 -T so_dot_version libhandle.lai /lib; ../../install-sh -o bj -g bj -T so_dot_current libhandle.lai /lib
> chown: invalid user: `bj:bj'
> chown: invalid user: `bj:bj'
> Installing libdisk-install
> make[1]: Nothing to be done for `install'.
> Installing copy-install
> ../install-sh -o bj -g bj -m 755 -d /usr/sbin
> chown: invalid user: `bj:bj'
> make[1]: *** [install] Error 1
> make: *** [copy-install] Error 2
Signed-off-by: Zhenhua Luo <b19537 at freescale.com>
---
include/install-sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/install-sh b/include/install-sh
index 18c051f..9d8ff06 100755
--- a/include/install-sh
+++ b/include/install-sh
@@ -105,10 +105,10 @@ do
c)
;;
g)
- GROUP=$OPTARG
+ GROUP=`id -g $OPTARG`
;;
o)
- OWNER=$OPTARG
+ OWNER=`id -u $OPTARG`
;;
m)
DIRMODE=`expr $OPTARG`
--
1.7.0.4
More information about the xfs
mailing list