win32-security 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.3 - 27-Jun-2013
2
+ * Fixed a bug where a sid could be inappropriately stripped. Thanks
3
+ go to Josh Cooper for the spot.
4
+
1
5
  == 0.2.2 - 8-Apr-2013
2
6
  * Fixed HANDLE prototypes in the underlying FFI code. This affected
3
7
  64 bit versions of Ruby.
data/README CHANGED
@@ -22,7 +22,13 @@
22
22
  == Known Issues
23
23
  None that I'm aware of. Please file any bug reports on the project page
24
24
  at http://www.rubyforge.org/projects/win32utils.
25
-
25
+
26
+ == Contributions
27
+ Although this library is free, please consider having your company
28
+ setup a gittip if used by your company professionally.
29
+
30
+ http://www.gittip.com/djberg96/
31
+
26
32
  == License
27
33
  Artistic 2.0
28
34
 
@@ -20,7 +20,7 @@ module Win32
20
20
  extend Windows::Security::Functions
21
21
 
22
22
  # The version of the win32-security library
23
- VERSION = '0.2.2'
23
+ VERSION = '0.2.3'
24
24
 
25
25
  # Used by OpenProcessToken
26
26
  TOKEN_QUERY = 8
@@ -274,7 +274,8 @@ module Win32
274
274
  @sid = account
275
275
  @account = sid.read_string(sid.size).strip
276
276
  else
277
- @sid = sid.read_string(sid.size).strip
277
+ length = GetLengthSid(sid)
278
+ @sid = sid.read_string(length)
278
279
  @account = account
279
280
  end
280
281
 
@@ -9,7 +9,7 @@ require 'win32/security'
9
9
 
10
10
  class TC_Win32_Security < Test::Unit::TestCase
11
11
  test "version constant is set to expected value" do
12
- assert_equal('0.2.2', Win32::Security::VERSION)
12
+ assert_equal('0.2.3', Win32::Security::VERSION)
13
13
  end
14
14
 
15
15
  test "elevated security basic functionality" do
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-security'
5
- spec.version = '0.2.2'
5
+ spec.version = '0.2.3'
6
6
  spec.authors = ['Daniel J. Berger', 'Park Heesob']
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-security
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-08 00:00:00.000000000 Z
13
+ date: 2013-06-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ffi