summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2010-06-07 00:48:00 +0100
committerRoger Leigh <rleigh@debian.org>2010-06-07 00:49:37 +0100
commitb38cdfd6cd98f6bf931b2766fd6762225fc73a8d (patch)
treed1f9ecfd26aff1b047fe11f29daf9de2b4010879 /etc
parent22a92b753d5304b750780b2fc115a19a417634de (diff)
downloadschroot-b38cdfd6cd98f6bf931b2766fd6762225fc73a8d.tar.gz
20nssdatabases: Don't use $db for stat results
Diffstat (limited to 'etc')
-rwxr-xr-xetc/setup.d/20nssdatabases6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/setup.d/20nssdatabases b/etc/setup.d/20nssdatabases
index 09641803..ccf9b0ec 100755
--- a/etc/setup.d/20nssdatabases
+++ b/etc/setup.d/20nssdatabases
@@ -51,13 +51,13 @@ if [ $1 = "setup-start" ] || [ $1 = "setup-recover" ]; then
fi
# Device and inode
- da=$(/usr/bin/stat --format="%d %i" "/etc/$db")
- db=$(/usr/bin/stat --format="%d %i" "${CHROOT_PATH}/etc/$db")
+ dr=$(/usr/bin/stat --format="%d %i" "/etc/$db")
+ dc=$(/usr/bin/stat --format="%d %i" "${CHROOT_PATH}/etc/$db")
# If the database inside and outside the chroot is the
# same, it's very likely that dup_nss would blank the
# database, so skip it.
- if [ "$da" = "$db" ]; then
+ if [ "$dr" = "$dc" ]; then
echo "$db files '/etc/$db' and '${CHROOT_PATH}/etc/$db' are the same file; skipping"
continue;
fi