Bug 57517 - Downloading a file fails due to a sandbox violation if the destination path is a symlink
Summary: Downloading a file fails due to a sandbox violation if the destination path i...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 18:04 PDT by Anders Carlsson
Modified: 2011-03-30 18:11 PDT (History)
0 users

See Also:


Attachments
Patch (3.85 KB, patch)
2011-03-30 18:06 PDT, Anders Carlsson
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2011-03-30 18:04:05 PDT
Downloading a file fails due to a sandbox violation if the destination path is a symlink
Comment 1 Anders Carlsson 2011-03-30 18:06:18 PDT
Created attachment 87649 [details]
Patch
Comment 2 Sam Weinig 2011-03-30 18:07:46 PDT
Comment on attachment 87649 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=87649&action=review

> Source/WebKit2/Shared/mac/SandboxExtensionMac.mm:123
> +    char *slashPtr = strrchr(path.data(), '/');

* on wrong side.
Comment 3 Anders Carlsson 2011-03-30 18:11:33 PDT
Committed r82527: <http://trac.webkit.org/changeset/82527>