projects
/
pkgusr
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13a691c
)
Fix for multi-line groups
author
Steve Youngs
<steve@steveyoungs.com>
Mon, 8 Feb 2021 12:19:38 +0000
(22:19 +1000)
committer
Steve Youngs
<steve@steveyoungs.com>
Mon, 8 Feb 2021 12:19:38 +0000
(22:19 +1000)
Signed-off-by: Steve Youngs <steve@steveyoungs.com>
usr/sbin/add_package_user
patch
|
blob
|
history
diff --git
a/usr/sbin/add_package_user
b/usr/sbin/add_package_user
index
c592237
..
ba6fd6a
100755
(executable)
--- a/
usr/sbin/add_package_user
+++ b/
usr/sbin/add_package_user
@@
-179,7
+179,7
@@
do
creategroup=0
#test if group already exists and extract gid if so
- g=`grep ^${group}:.\* $grpfile | cut -d : -f 3 -`
+ g=`grep
-m1
^${group}:.\* $grpfile | cut -d : -f 3 -`
#if group does not exist, then check range for a free gid
if [ z$g = z ]; then