Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
c66e4676
Commit
c66e4676
authored
May 06, 2015
by
Mason Glidden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just remove write permissions from files, so executables are unaffected (#3501)
parent
1bf21c70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
CHANGELOG.md
CHANGELOG.md
+4
-0
pod_source_installer.rb
lib/cocoapods/installer/pod_source_installer.rb
+4
-1
No files found.
CHANGELOG.md
View file @
c66e4676
...
...
@@ -23,6 +23,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
#3501
](
https://github.com/CocoaPods/CocoaPods/issues/3501
)
[
#3515
](
https://github.com/cocoapods/cocoapods/issues/3515
)
*
Just remove write permissions from files, so executables are unaffected.
[
Mason Glidden
](
https://github.com/mglidden
)
[
#3501
](
https://github.com/CocoaPods/CocoaPods/issues/3501
)
## 0.37.0
For more details, see 📝
[
CocoaPods 0.37
](
http://blog.cocoapods.org/CocoaPods-0.37/
)
on our blog.
...
...
lib/cocoapods/installer/pod_source_installer.rb
View file @
c66e4676
...
...
@@ -104,7 +104,10 @@ module Pod
# those permissions if you decide to delete the Pods folder.
Dir
.
glob
(
root
+
'**/*'
).
each
do
|
file
|
if
File
.
file?
(
file
)
File
.
chmod
(
0444
,
file
)
# Only remove write permission, since some pods (like Crashlytics)
# have executable files.
new_permissions
=
File
.
stat
(
file
).
mode
&
~
0222
File
.
chmod
(
new_permissions
,
file
)
end
end
end
...
...
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