Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14416032
D7675.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
394 B
Referenced Files
None
Subscribers
None
D7675.diff
View Options
Index: scripts/ssh/ssh-auth.php
===================================================================
--- scripts/ssh/ssh-auth.php
+++ scripts/ssh/ssh-auth.php
@@ -15,6 +15,11 @@
$user_dao->getTableName(),
$ssh_dao->getTableName());
+if (!$rows) {
+ echo pht("No keys found.")."\n";
+ exit(1);
+}
+
$bin = $root.'/bin/ssh-exec';
foreach ($rows as $row) {
$user = $row['userName'];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 8:23 PM (11 h, 7 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6927572
Default Alt Text
D7675.diff (394 B)
Attached To
Mode
D7675: Correctly handle case where no ssh keys are found
Attached
Detach File
Event Timeline
Log In to Comment