[37804] branches/gsoc08-privileges/base/aclocal.m4

pmagrath at macports.org pmagrath at macports.org
Tue Jun 24 04:05:02 PDT 2008


Revision: 37804
          http://trac.macosforge.org/projects/macports/changeset/37804
Author:   pmagrath at macports.org
Date:     2008-06-24 04:05:02 -0700 (Tue, 24 Jun 2008)
Log Message:
-----------
Fix problem reported by Rainer where `whoami` might be incorrect if the main group of the user does not have the same name as the user.

Modified Paths:
--------------
    branches/gsoc08-privileges/base/aclocal.m4

Modified: branches/gsoc08-privileges/base/aclocal.m4
===================================================================
--- branches/gsoc08-privileges/base/aclocal.m4	2008-06-24 09:31:37 UTC (rev 37803)
+++ branches/gsoc08-privileges/base/aclocal.m4	2008-06-24 11:05:02 UTC (rev 37804)
@@ -302,13 +302,13 @@
 
 		# Set install-user to current user
 		AC_MSG_CHECKING([for install user])
-		DSTUSR=`whoami`
+		DSTUSR=`id -un`
 		AC_MSG_RESULT([$DSTUSR])
 		AC_SUBST(DSTUSR)
 		
 		# Set install-group to current user
 		AC_MSG_CHECKING([for install group])
-		DSTGRP=`whoami`
+		DSTGRP=`id -gn`
 		AC_MSG_RESULT([$DSTGRP])
 		AC_SUBST(DSTGRP)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080624/0818d059/attachment.htm 


More information about the macports-changes mailing list