Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ian Eiloart
Sympl
Commits
71ee323a
Commit
71ee323a
authored
Jan 11, 2016
by
Patrick J Cherry
Browse files
common: Fix up privs drop
Fixes: undefined method `gid' for #<Symbiosis::SSL::SelfSigned:0x00000001ea9088>
parent
12efc3ca
Changes
1
Show whitespace changes
Inline
Side-by-side
common/lib/symbiosis/ssl/certificate_set.rb
View file @
71ee323a
...
@@ -480,8 +480,8 @@ module Symbiosis
...
@@ -480,8 +480,8 @@ module Symbiosis
#
#
# Drop privs before creating the temporary directory, if required.
# Drop privs before creating the temporary directory, if required.
#
#
Process
.
egid
=
self
.
gid
if
Process
.
gid
==
0
Process
.
egid
=
self
.
domain
.
gid
if
Process
.
gid
==
0
Process
.
euid
=
self
.
uid
if
Process
.
uid
==
0
Process
.
euid
=
self
.
domain
.
uid
if
Process
.
uid
==
0
tmpdir
=
Dir
.
mktmpdir
(
self
.
name
+
"-ssl-"
)
tmpdir
=
Dir
.
mktmpdir
(
self
.
name
+
"-ssl-"
)
...
...
Write
Preview
Supports
Markdown
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