Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F86837
D7675.id17331.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
356 B
Referenced Files
None
Subscribers
None
D7675.id17331.diff
View Options
diff --git a/scripts/ssh/ssh-auth.php b/scripts/ssh/ssh-auth.php
--- a/scripts/ssh/ssh-auth.php
+++ b/scripts/ssh/ssh-auth.php
@@ -15,6 +15,11 @@
$user_dao->getTableName(),
$ssh_dao->getTableName());
+if (!$rows) {
+ echo "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/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/tf/qs/twfqnzn2icg2qpaq
Default Alt Text
D7675.id17331.diff (356 B)
Attached To
Mode
D7675: Correctly handle case where no ssh keys are found
Attached
Detach File
Event Timeline
Log In to Comment