summaryrefslogtreecommitdiff
path: root/modules/pam_namespace/namespace.init
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2023-03-31 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2023-03-31 08:00:00 +0000
commitb6011a23d51acff6eb492cb33aa5c2582da6fab4 (patch)
treee34b7b9b764d99abdf902166b57893b3ac7009b6 /modules/pam_namespace/namespace.init
parentb7ba550110f2f93fabb50976ea920fcb656c9a8e (diff)
downloadlinux-pam-git-ldv/shellcheck.tar.gz
treewide: fix unnecessary $ on arithmetic variablesldv/shellcheck
This should fix shellcheck warning SC2004.
Diffstat (limited to 'modules/pam_namespace/namespace.init')
-rwxr-xr-xmodules/pam_namespace/namespace.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_namespace/namespace.init b/modules/pam_namespace/namespace.init
index 67d4aa2d..d9053a13 100755
--- a/modules/pam_namespace/namespace.init
+++ b/modules/pam_namespace/namespace.init
@@ -16,7 +16,7 @@ if [ "$3" = 1 ]; then
cp -rT /etc/skel "$homedir"
chown -R "$user":"$gid" "$homedir"
mask=$(awk '/^UMASK/{gsub("#.*$", "", $2); print $2; exit}' /etc/login.defs)
- mode=$(printf "%o" $((0777 & ~$mask)))
+ mode=$(printf "%o" $((0777 & ~mask)))
chmod ${mode:-700} "$homedir"
[ -x /sbin/restorecon ] && /sbin/restorecon -R "$homedir"
fi