diff options
Diffstat (limited to 'nss')
-rw-r--r-- | nss/db-Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nss/db-Makefile b/nss/db-Makefile index 881cabf..55edd66 100644 --- a/nss/db-Makefile +++ b/nss/db-Makefile @@ -13,7 +13,8 @@ $(VAR_DB)/passwd.db: /etc/passwd @echo -n "$(patsubst %.db,%,$(@F))... " @$(AWK) 'BEGIN { FS=":"; OFS=":" } \ /^[^#]/ { printf ".%s ", $$1; print; \ - printf "=%s ", $$3; print }' $^ | \ + if (!uids[$$3]++) \ + { printf "=%s ", $$3; print } }' $^ | \ $(MAKEDB) -o $@ - @echo "done." |