Skip to content

Commit

Permalink
Added /etc/passwd file to awk command (typo)
Browse files Browse the repository at this point in the history
  • Loading branch information
davinerd committed Oct 25, 2011
1 parent f69b75c commit 64a820b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tomb
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ exec_safe_bind_hooks() {
fi
local MOUNTPOINT="${1}"
local ME=${SUDO_USER:-$(whoami)}
local HOME=$(awk -F ':' '{if ($1 == $ME) print $6}' 2>/dev/null)
local HOME=$(awk -F ':' '{if ($1 == "$ME") print $6}' /etc/passwd 2>/dev/null)
if [ $? -ne 0 ]; then
error "how pitiful! A tomb, and no HOME"
return 1
Expand Down

0 comments on commit 64a820b

Please sign in to comment.