public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfsprogs: use uid/gid instead of actual name to fix install issue
@ 2011-12-23  6:52 b19537
  2011-12-23 10:01 ` Dave Chinner
  0 siblings, 1 reply; 5+ messages in thread
From: b19537 @ 2011-12-23  6:52 UTC (permalink / raw)
  To: xfs; +Cc: Zhenhua Luo

From: Zhenhua Luo <b19537@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@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


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-26  3:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-23  6:52 [PATCH] xfsprogs: use uid/gid instead of actual name to fix install issue b19537
2011-12-23 10:01 ` Dave Chinner
2011-12-23 14:20   ` Luo Zhenhua-B19537
2011-12-23 21:08     ` Dave Chinner
2011-12-26  3:39       ` Luo Zhenhua-B19537

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