Do not rely on hardcoded path to systemd-ask-password.
authorMichał Górny <mgorny@gentoo.org>
Tue, 30 Jul 2013 08:00:26 +0000 (10:00 +0200)
committerJeff Layton <jlayton@samba.org>
Tue, 30 Jul 2013 11:21:50 +0000 (07:21 -0400)
commit4e315f6a02a4edb259b33bcf0665eba259fee2f2
tree42863f198e09f0ea864b9f816c40f9abfbd3ebc5
parent3ec619fce9abaa37edd4540840913682d48c5359
Do not rely on hardcoded path to systemd-ask-password.

Relying on hardcoded /bin/systemd-ask-password path breaks systemd that
install systemd-ask-password in /usr/bin. Since both paths are supposed
to be in ${PATH} and popen() passes the command to shell, just pass
'systemd-ask-password' and let the shell find it.

Fixes: https://bugzilla.samba.org/show_bug.cgi?id=10054
Signed-off-by: Michał Górny <mgorny@gentoo.org>
mount.cifs.c