[Webkit-unassigned] [Bug 216834] [macOS] Issue sandbox extension for the diagnostic daemon
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 23 11:29:54 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=216834
Brent Fulgham <bfulgham at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #409385|review? |review+
Flags| |
--- Comment #5 from Brent Fulgham <bfulgham at webkit.org> ---
Comment on attachment 409385
--> https://bugs.webkit.org/attachment.cgi?id=409385
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=409385&action=review
r=me, but I think you could use an existing FileSystem function instead of the raw 'stat' operation.
> Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:68
> +#import <sys/stat.h>
You don't need to include this if you use , FileSystem::fileIsDirectory
> Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm:211
> + static bool isInternal = !stat("/AppleInternal", &st);
I think it might be better to do:
static bool isInternal = FileSystem::fileIsDirectory("/AppleInternal", FileSystem::ShouldFollowSymbolicLinks::No);
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200923/aaa1972f/attachment.htm>
More information about the webkit-unassigned
mailing list