[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] server - Only check for $HOME/.speech-dispatcher if the current
From: |
Milan Zamazal |
Subject: |
[PATCH] server - Only check for $HOME/.speech-dispatcher if the current user's home directory starts with /home |
Date: |
Fri, 28 Aug 2009 12:19:56 +0200 |
>>>>> "LY" == Luke Yelavich <themuso at ubuntu.com> writes:
LY> If the current user's home directory does not start with /home,
LY> then it is safe to assume that speech-dispatcher is being run as
LY> root, or another system user,
It is not, home directories can be mount on another location. A better
test on Debian systems with default adduser configuration would be
checking uid, but this may be of no use on other systems.
But the main question is why a system user should have
~/.speech-dispatcher/ present when it is going to be ignored? Isn't the
~/.speech-dispatcher/ presence check enough?