diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-13 22:00:29 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-13 22:00:29 +0000 |
commit | 301ad56533ad5fc64bef1ec98cbfeea45ba515ff (patch) | |
tree | 780f2008008a539fbfc478ee7d572189d4ec03a7 /chrome/installer/gcapi_mac/gcapi.mm | |
parent | 88dde5aedfe775435c6a4f11a7ca2555f86cfe16 (diff) | |
download | chromium_src-301ad56533ad5fc64bef1ec98cbfeea45ba515ff.zip chromium_src-301ad56533ad5fc64bef1ec98cbfeea45ba515ff.tar.gz chromium_src-301ad56533ad5fc64bef1ec98cbfeea45ba515ff.tar.bz2 |
gcapi/mac: Prevent "unknown binary" stderr output from sudo
BUG=151345
Review URL: https://chromiumcodereview.appspot.com/10824285
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/gcapi_mac/gcapi.mm')
-rw-r--r-- | chrome/installer/gcapi_mac/gcapi.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/installer/gcapi_mac/gcapi.mm b/chrome/installer/gcapi_mac/gcapi.mm index 7c9396124..b54f8ea 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; |