diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2016-09-26 14:21:39 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2016-09-26 14:21:39 +0200 |
commit | 05745737c659098d3cc1e9ae0f8eedddac7b3603 (patch) | |
tree | 96fd24b724de2c46c286a3437ac89d36e1d38cb4 | |
parent | f1bfb872877df7baf36d2de1ad5dfdb4c8604c9b (diff) | |
download | gitlab-ce-05745737c659098d3cc1e9ae0f8eedddac7b3603.tar.gz |
Explain the extra chmod
-rw-r--r-- | lib/gitlab/workhorse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb index 5d33f98e89e..594439a5d4b 100644 --- a/lib/gitlab/workhorse.rb +++ b/lib/gitlab/workhorse.rb @@ -111,7 +111,7 @@ module Gitlab def write_secret bytes = SecureRandom.random_bytes(SECRET_LENGTH) File.open(secret_path, 'w:BINARY', 0600) do |f| - f.chmod(0600) + f.chmod(0600) # If the file already existed, the '0600' passed to 'open' above was a no-op. f.write(Base64.strict_encode64(bytes)) end end |