sockd 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c408fa52aaca6497e9232d1d40b6838087e5141
4
- data.tar.gz: 35f591904b7ed9cbca28c806133b9f31e733ac7d
3
+ metadata.gz: f9bb01a2e4b1d24261fce56f2b66bd25975e33b5
4
+ data.tar.gz: fa1a0fc24b4d2e0e7f53f948cc0ae0765566ef44
5
5
  SHA512:
6
- metadata.gz: d97338cf055354fc53625b0ed8fe2a41319b12f8851e67e65ebfedd6a0255c7dc7acc4ee0cd640769a585fef5986c5fab525a7cf94cda12bdb2f31f41bbee0aa
7
- data.tar.gz: d3eb97509a892e7ed8c8f13f7d929e339f8069719554f9abe30feb480840bc8c00f9ae392559052aecfd6040d22f0812076d174c8899a722a31012adc4409f26
6
+ metadata.gz: e55c7365353edd8d87b9862f3e52ae328b247360ae738225d49085a2e05099636ac846b9d48a319eac0f1f413fec6e515dcbe1d3e2d98b709edc0c2cd0b3fddd
7
+ data.tar.gz: a1bf0d11bcd74d917ae0c0a64e1ee60c862a0189799c3dd32ec3df9b423ab1d0dac80998dae1e61491c7f4168fb93bd2864c110ed139a9adcb888bc8bc34446b
data/lib/sockd/runner.rb CHANGED
@@ -293,8 +293,8 @@ module Sockd
293
293
  gid = Etc.getgrnam(group).gid if group
294
294
  gid = Etc.getpwnam(user).gid if group.nil? && user
295
295
 
296
- Process::Sys.setuid(uid) if uid
297
296
  Process::Sys.setgid(gid) if gid
297
+ Process::Sys.setuid(uid) if uid
298
298
  rescue ArgumentError => e
299
299
  # user or group does not exist
300
300
  raise ProcError, "unable to drop privileges (#{e})"
data/lib/sockd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sockd
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sockd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Greiling
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-07 00:00:00.000000000 Z
11
+ date: 2015-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler