From b38cdfd6cd98f6bf931b2766fd6762225fc73a8d Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Mon, 7 Jun 2010 00:48:00 +0100 Subject: 20nssdatabases: Don't use $db for stat results --- etc/setup.d/20nssdatabases | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') 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 -- cgit v1.2.3