Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
b3ca3e95
Commit
b3ca3e95
authored
Mar 14, 2012
by
Andrew Gerrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/dist: force modes to 0755 or 0644 in tarballs
R=golang-dev, dsymonds CC=golang-dev
https://golang.org/cl/5823045
parent
214a1ca3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
bindist.go
misc/dist/bindist.go
+7
-0
No files found.
misc/dist/bindist.go
View file @
b3ca3e95
...
...
@@ -536,6 +536,13 @@ func makeTar(targ, workdir string) error {
hdr
.
Uid
=
0
hdr
.
Gid
=
0
// Force mode to 0755 for executables, 0644 for everything else.
if
hdr
.
Mode
&
0111
!=
0
{
hdr
.
Mode
=
0755
}
else
{
hdr
.
Mode
=
0644
}
err
=
tw
.
WriteHeader
(
hdr
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"Error writing file %q: %v"
,
name
,
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment