diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2003-07-06 19:37:40 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2003-07-06 19:37:40 +0000 |
commit | db42b170555bcb38493d96da03e8877b59eec611 (patch) | |
tree | 35c33748ea2b7adb14d9ae114e736f23b72a61de /Makefile.inc1 | |
parent | 6a495f3edeb19fcb98d4b87bbbfad05dac45a645 (diff) | |
download | FreeBSD-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.inc1 | 4 |
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 |