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

Issue 132183007: Modify CopyFileUnsafe() on OSX to stop copying ACL. (Closed)

Created:
6 years, 11 months ago by M-A Ruel
Modified:
6 years, 10 months ago
Reviewers:
Mark Mentovai, Nico
CC:
chromium-reviews, erikwright+watch_chromium.org, csharp, Vadim Sh.
Visibility:
Public.

Description

Modify CopyFileUnsafe() on OSX to stop copying ACL. This makes CopyFile() and CopyDirectory() behavior consistent on OSX to the other platforms. Stop copying the ACL on the files copied. This means the destination file will inherit from the umask or inherited ACL from the destination parent directory, which is sane. This matches what is done on linux. This will fixes unit tests that copy files from a read only directory into a temporary directory so they can be safely be modified, otherwise the file acl would have to be modified everytime. While base_unittests didn't care, it blew up disk cache tests in net_unittests. R=thakis@chromium.org BUG=116251, 335420 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249258

Patch Set 1 #

Patch Set 2 : Rebase on 141273010 #

Patch Set 3 : Rebase on ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -22 lines) Patch
M base/file_util.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M base/file_util_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M base/file_util_unittest.cc View 1 2 chunks +0 lines, -19 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
M-A Ruel
6 years, 11 months ago (2014-01-17 21:24:28 UTC) #1
Nico
lgtm, xplat consistency of base functions is cool +Mark to shout if this breaks invariants ...
6 years, 11 months ago (2014-01-17 21:39:41 UTC) #2
Mark Mentovai
LGTM. I don’t know what does use CopyFileUnsafe, but I know that the installer doesn’t.
6 years, 11 months ago (2014-01-17 21:41:22 UTC) #3
M-A Ruel
Nico, did you archive the thread of https://codereview.chromium.org/141273010 by accident? A *full weekend* without review. ...
6 years, 11 months ago (2014-01-20 15:03:22 UTC) #4
M-A Ruel
Nico, did you archive the thread of https://codereview.chromium.org/141273010 by accident? A *full weekend* without review. ...
6 years, 11 months ago (2014-01-20 15:03:23 UTC) #5
Nico
On Mon, Jan 20, 2014 at 7:03 AM, <maruel@chromium.org> wrote: > Nico, did you archive ...
6 years, 11 months ago (2014-01-21 04:04:33 UTC) #6
M-A Ruel
The CQ bit was checked by maruel@chromium.org
6 years, 10 months ago (2014-02-05 22:17:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/132183007/120001
6 years, 10 months ago (2014-02-05 22:20:30 UTC) #8
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 03:42:42 UTC) #9
Message was sent while issue was closed.
Change committed as 249258

Powered by Google App Engine
This is Rietveld 408576698