xfs
[Top] [All Lists]

[PATCH] xfsprogs: use uid/gid instead of actual name to fix install issu

To: <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfsprogs: use uid/gid instead of actual name to fix install issue
From: <b19537@xxxxxxxxxxxxx>
Date: Fri, 23 Dec 2011 14:52:53 +0800
Cc: Zhenhua Luo <b19537@xxxxxxxxxxxxx>
From: Zhenhua Luo <b19537@xxxxxxxxxxxxx>

    > 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@xxxxxxxxxxxxx>
---
 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


<Prev in Thread] Current Thread [Next in Thread>