mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix directory creation when primary group is different from user name
This commit is contained in:
parent
e8ec68ad6c
commit
428645d185
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425039
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue