tazpanel diff index.cgi @ rev 507
nss support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 12 16:19:16 2015 +0200 (2015-07-12) |
parents | a8ff72f76e0d |
children | a6066b70a2af |
line diff
1.1 --- a/index.cgi Sun Jul 12 13:03:50 2015 +0200 1.2 +++ b/index.cgi Sun Jul 12 16:19:16 2015 +0200 1.3 @@ -225,7 +225,7 @@ 1.4 header; xhtml_header "$(_ 'Terminal')" 1.5 1.6 user="$REMOTE_USER" 1.7 - HOME="$(awk -F: -vu=$user '$1==u{print $6}' /etc/passwd)" 1.8 + HOME="$(getdb passwd | awk -F: -vu=$user '$1==u{print $6}')" 1.9 historyfile="$HOME/.ash_history" 1.10 1.11 cmd=$(GET cmd) 1.12 @@ -358,7 +358,7 @@ 1.13 *\ rmhistory\ *) 1.14 # Manage shell commandline history 1.15 user="$REMOTE_USER" 1.16 - HOME="$(awk -F: -vu="$user" '$1==u{print $6}' /etc/passwd)" 1.17 + HOME="$(getdb passwd | awk -F: -vu="$user" '$1==u{print $6}')" 1.18 historyfile="$HOME/.ash_history" 1.19 1.20 # Return sed command for removing history lines ('8d12d' to remove 8 and 12 lines)