New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 654925 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Last visit 26 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

GN: CreateDirectory permission

Reported by jack.ba...@gmail.com, Oct 11 2016

Issue description

When I use GN to build Chromium, I get a mix of directory permissions in the "out" directory: Some 0755 (the default on my system) and some 0700.
I think what's happening is that if Ninja created the directory, then it has the default permissions. (Likewise if the tools/gn/bootstrap/bootstrap.py script created the directory.)
If GN created the directory it has 0700 permissions.
Previously when I built with GYP, all directories had the default permissions.
This is easy to fix after the fact, but it's annoying. (For a while I was confused why my Chromium build ran, but couldn't locate its debugging symbols.)

gn-dev thread: https://groups.google.com/a/chromium.org/d/msg/gn-dev/Xz4G3EBaNhU/uMLoqllaGQAJ
 
Cc: dpranke@chromium.org
Components: Build
Labels: Build-Tools-GN OS-All
Owner: brettw@chromium.org
Status: Untriaged (was: Unconfirmed)
That may be because we create directories with mkdir(i->value().c_str(), 0700).
While ninja does mkdir(path.c_str(), 0777).
Status: Assigned (was: Untriaged)

Sign in to add a comment