summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2003-07-06 19:37:40 +0000
committergshapiro <gshapiro@FreeBSD.org>2003-07-06 19:37:40 +0000
commitdb42b170555bcb38493d96da03e8877b59eec611 (patch)
tree35c33748ea2b7adb14d9ae114e736f23b72a61de /Makefile.inc1
parent6a495f3edeb19fcb98d4b87bbbfad05dac45a645 (diff)
downloadFreeBSD-src-db42b170555bcb38493d96da03e8877b59eec611.zip
FreeBSD-src-db42b170555bcb38493d96da03e8877b59eec611.tar.gz
Use 'id' instead of 'grep' to detect the presence of the smmsp user/group.
This fixes the check for users with smmsp in NIS instead of their local files. Suggested by: peter MFC after: 5 days
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc14
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 97d2486..78e7ee4 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -373,11 +373,11 @@ buildworld: ${WMAKE_TGTS}
#
installcheck:
.if !defined(NO_SENDMAIL)
- @if ! `grep -q '^smmsp:' /etc/passwd`; then \
+ @if ! `id -u smmsp > /dev/null`; then \
echo "ERROR: Required smmsp user is missing, see /usr/src/UPDATING."; \
false; \
fi
- @if ! `grep -q '^smmsp:' /etc/group`; then \
+ @if ! `id -g smmsp > /dev/null`; then \
echo "ERROR: Required smmsp group is missing, see /usr/src/UPDATING."; \
false; \
fi
OpenPOWER on IntegriCloud