[CRIU] [PATCH] scripts/systemd-autofs-restart.sh: fix variable name

Adrian Reber adrian at lisas.de
Wed Jun 6 11:05:05 MSK 2018


From: Adrian Reber <areber at redhat.com>

The script checks if $NSENTER is executable and sets $NS_ENTER if not.
This seems to be a typo (once with '_' and once without).

Untested and not reproducible. It just looks wrong.

Signed-off-by: Adrian Reber <areber at redhat.com>
---
 scripts/systemd-autofs-restart.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/systemd-autofs-restart.sh b/scripts/systemd-autofs-restart.sh
index 1625502..b22078c 100755
--- a/scripts/systemd-autofs-restart.sh
+++ b/scripts/systemd-autofs-restart.sh
@@ -27,7 +27,7 @@ if [ ! -d "/proc/$CRTOOLS_INIT_PID" ]; then
 fi
 
 NS_ENTER=/bin/nsenter
-[ ! -x $NSENTER ] || NS_ENTER=/usr/bin/nsenter
+[ ! -x $NS_ENTER ] || NS_ENTER=/usr/bin/nsenter
 
 if [ ! -x $NS_ENTER ]; then
 	echo "$NS_ENTER binary not found"
-- 
1.8.3.1



More information about the CRIU mailing list