diff options
author | Steve Langasek <steve.langasek@canonical.com> | 2022-10-05 21:03:10 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@canonical.com> | 2022-10-05 21:03:10 -0700 |
commit | 6183559b9467d2c3ffbb99228a40a8bfa2fc8c6f (patch) | |
tree | 26de8097b547f81347dfb213e8b1d8bcb31d0851 | |
parent | 714a766fcbe0d2cef9cdbefcd247be3aae5d6eef (diff) | |
download | pam-6183559b9467d2c3ffbb99228a40a8bfa2fc8c6f.tar.gz pam-6183559b9467d2c3ffbb99228a40a8bfa2fc8c6f.tar.bz2 pam-6183559b9467d2c3ffbb99228a40a8bfa2fc8c6f.zip |
Style nitpick wrt variable quoting in path arguments
-rw-r--r-- | debian/libpam-modules.postinst | 8 | ||||
-rw-r--r-- | debian/libpam-runtime.postinst | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/debian/libpam-modules.postinst b/debian/libpam-modules.postinst index 20b6bf17..529132da 100644 --- a/debian/libpam-modules.postinst +++ b/debian/libpam-modules.postinst @@ -5,16 +5,16 @@ if [ -z "$2" ] || dpkg --compare-versions "$2" lt 0.99.7.1-3 then - if ! [ -f "$DPKG_ROOT/etc/security/opasswd" ]; then + if ! [ -f "$DPKG_ROOT"/etc/security/opasswd ]; then umask 066 - touch "$DPKG_ROOT/etc/security/opasswd" + touch "$DPKG_ROOT"/etc/security/opasswd umask 022 fi fi -if dpkg --compare-versions "$2" lt 0.99.9.0-1 && ! [ -f "$DPKG_ROOT/etc/environment" ] +if dpkg --compare-versions "$2" lt 0.99.9.0-1 && ! [ -f "$DPKG_ROOT"/etc/environment ] then - touch "$DPKG_ROOT/etc/environment" + touch "$DPKG_ROOT"/etc/environment fi #DEBHELPER# diff --git a/debian/libpam-runtime.postinst b/debian/libpam-runtime.postinst index 792f44ff..03628cfe 100644 --- a/debian/libpam-runtime.postinst +++ b/debian/libpam-runtime.postinst @@ -20,9 +20,9 @@ then for configfile in common-auth common-account common-session \ common-password do - if [ -f "$DPKG_ROOT/etc/pam.d/$configfile" ] && \ + if [ -f "$DPKG_ROOT"/etc/pam.d/$configfile ] && \ ! fgrep -q $(calculate_md5sum $configfile) \ - "$DPKG_ROOT/usr/share/pam/$configfile.md5sums" 2>/dev/null + "$DPKG_ROOT"/usr/share/pam/$configfile.md5sums 2>/dev/null then force= fi |