about summary refs log tree commit diff
path: root/nss
diff options
context:
space:
mode:
Diffstat (limited to 'nss')
-rw-r--r--nss/db-Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/db-Makefile b/nss/db-Makefile
index f281d4d0e0..220419c7a9 100644
--- a/nss/db-Makefile
+++ b/nss/db-Makefile
@@ -116,7 +116,7 @@ $(VAR_DB)/shadow.db: /etc/shadow
 	@if chgrp shadow $@ 2>/dev/null; then \
 	  chmod g+r $@; \
 	else \
-	  chown 0; chgrp 0; chmod 600; \
+	  chown 0 $@; chgrp 0 $@; chmod 600 $@; \
 	  echo; \
 	  echo "Warning: The shadow password database $@"; \
 	  echo "has been set to be readable only by root.  You may want"; \