From b9d8eeea9e202813302e7fcba1d31f11461b5073 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Sat, 27 Feb 2010 22:09:51 +0100 Subject: [PATCH] Fixed to catch the error output of the key check. --- src/IDF/Form/UserAccount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Form/UserAccount.php b/src/IDF/Form/UserAccount.php index e64297b..2f33370 100644 --- a/src/IDF/Form/UserAccount.php +++ b/src/IDF/Form/UserAccount.php @@ -213,7 +213,7 @@ class IDF_Form_UserAccount extends Pluf_Form $tmpfile = Pluf::f('tmp_folder', '/tmp').$user.'-key'; file_put_contents($tmpfile, $key, LOCK_EX); $cmd = Pluf::f('idf_exec_cmd_prefix', ''). - 'ssh-keygen -l -f '.escapeshellarg($tmpfile); + 'ssh-keygen -l -f '.escapeshellarg($tmpfile).' > /dev/null 2>&1'; exec($cmd, $out, $return); unlink($tmpfile); if ($return != 0) {