Bug 57517

Summary: Downloading a file fails due to a sandbox violation if the destination path is a symlink
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch sam: review+

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>