[X2Go-Commits] [live-build-x2go] 16/166: fixed whitespace detection around cmdline parameters

git-admin at x2go.org git-admin at x2go.org
Mon Nov 20 02:16:40 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/mate-minidesktop
in repository live-build-x2go.

commit 01c387f769c26ab05be2b45ad1798bc8585ce67f
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Sat Dec 31 20:21:23 2016 +0100

    fixed whitespace detection around cmdline parameters
---
 config/includes.chroot/lib/live/config/2100-lockuser | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/includes.chroot/lib/live/config/2100-lockuser b/config/includes.chroot/lib/live/config/2100-lockuser
index 7f89531..1cbcc15 100755
--- a/config/includes.chroot/lib/live/config/2100-lockuser
+++ b/config/includes.chroot/lib/live/config/2100-lockuser
@@ -10,7 +10,7 @@ echo -n " lockuser"
 
 # Set password
 #
-if grep -q " *nouser *" /proc/cmdline ; then
+if grep -q "\W*nouser\W*" /proc/cmdline ; then
 	passwd -l user >/dev/null
 fi
 

--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list