Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Nov 2016 00:33:36 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r425039 - head/Mk/Scripts
Message-ID:  <201611010033.uA10XabM062154@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Tue Nov  1 00:33:36 2016
New Revision: 425039
URL: https://svnweb.freebsd.org/changeset/ports/425039

Log:
  Fix directory creation when primary group is different from user name

Modified:
  head/Mk/Scripts/do-users-groups.sh

Modified: head/Mk/Scripts/do-users-groups.sh
==============================================================================
--- head/Mk/Scripts/do-users-groups.sh	Mon Oct 31 23:51:34 2016	(r425038)
+++ head/Mk/Scripts/do-users-groups.sh	Tue Nov  1 00:33:36 2016	(r425039)
@@ -117,7 +117,8 @@ if [ -n "${USERS}" ]; then
 				/|/nonexistent|/var/empty)
 					;;
 				*)
-					echo "${dp_INSTALL} -d -g $login -o $login $homedir" >> "${dp_UG_INSTALL}"
+					group=$(awk -F: -v gid=${gid} '$3 == gid { print $1 }' ${dp_GID_FILES})
+					echo "${dp_INSTALL} -d -g $group -o $login $homedir" >> "${dp_UG_INSTALL}"
 					;;
 			esac
 		done <<-eot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611010033.uA10XabM062154>