Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix critical issue with exec, fixed SHLVL

  • Loading branch information...
commit 874821041103acea505d4374af9040bc032a2317 1 parent 0679782
authored January 24, 2010
2  src/cdm
@@ -182,6 +182,8 @@ mainmenu() {
182 182
 	# Set wm_bin
183 183
 	clear
184 184
 	if [[ ${wm} -eq ${console} ]]; then
  185
+		#Fix SHLVL
  186
+		export SHLVL=$((SHLVL-1))
185 187
 		exec ${SHELL}
186 188
 	elif [[ ${wm} -eq ${halt} ]]; then
187 189
 		shutdownmenu
3  src/zzz-cdm-profile.sh
@@ -3,5 +3,6 @@ if [[ -z "$DISPLAY" && -z "$SSH_TTY" && $(tty) = /dev/tty* ]]; then
3 3
 	if [[ $EUID -eq 0 ]]; then
4 4
 		exec ${SHELL}
5 5
 	fi
6  
-	exec cdm
  6
+	cdm
  7
+	exit 0
7 8
 fi

0 notes on commit 8748210

Please sign in to comment.
Something went wrong with that request. Please try again.