Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1073)

Unified Diff: chrome/installer/gcapi_mac/gcapi.mm

Issue 10824285: gcapi/mac: Prevent "unknown binary" stderr output from sudo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/gcapi_mac/gcapi.mm
diff --git a/chrome/installer/gcapi_mac/gcapi.mm b/chrome/installer/gcapi_mac/gcapi.mm
index 7c9396124df768778a1539c84eead6ec8618f69e..b54f8ea06e999bf611a4d7698589f2e8e5c3b08c 100644
--- a/chrome/installer/gcapi_mac/gcapi.mm
+++ b/chrome/installer/gcapi_mac/gcapi.mm
@@ -108,6 +108,9 @@ BOOL HasChromeTicket(TicketKind kind, const passwd* user) {
NSEnumerator* e = [keystone_paths objectEnumerator];
id ks_path;
while ((ks_path = [e nextObject])) {
+ if (![[NSFileManager defaultManager] fileExistsAtPath:ks_path])
+ continue;
+
NSTask* task = nil;
NSString* string = nil;
bool ksadmin_ran_successfully = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698