summaryrefslogtreecommitdiff
path: root/lib/chef/win32/security
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-09 07:53:56 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-09 07:53:56 -0800
commitf073747786abbe6ada55ed24b696a03e39c3c45d (patch)
tree7971d871e89d522a58291713761a6c83f68e8d19 /lib/chef/win32/security
parentc6e69783705cfd48bfea0c943dc071964dd21311 (diff)
downloadchef-f073747786abbe6ada55ed24b696a03e39c3c45d.tar.gz
auto fixing some rubocops
Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
Diffstat (limited to 'lib/chef/win32/security')
-rw-r--r--lib/chef/win32/security/sid.rb6
-rw-r--r--lib/chef/win32/security/token.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/win32/security/sid.rb b/lib/chef/win32/security/sid.rb
index 4d2d252dd3..665cba8880 100644
--- a/lib/chef/win32/security/sid.rb
+++ b/lib/chef/win32/security/sid.rb
@@ -46,7 +46,7 @@ class Chef
end
def self.from_string_sid(string_sid)
- Chef::ReservedNames::Win32::Security::convert_string_sid_to_sid(string_sid)
+ Chef::ReservedNames::Win32::Security.convert_string_sid_to_sid(string_sid)
end
def ==(other)
@@ -275,10 +275,10 @@ class Chef
status = ERROR_MORE_DATA
- while(status == ERROR_MORE_DATA) do
+ while(status == ERROR_MORE_DATA)
status = NetUserEnum(servername, level, filter, bufptr, prefmaxlen, entriesread, totalentries, resume_handle)
- if (status == NERR_Success || status == ERROR_MORE_DATA)
+ if status == NERR_Success || status == ERROR_MORE_DATA
entriesread.read_long.times.collect do |i|
user_info = USER_INFO_3.new(bufptr.read_pointer + i * USER_INFO_3.size)
# Check if the account is the Administrator account
diff --git a/lib/chef/win32/security/token.rb b/lib/chef/win32/security/token.rb
index f8b6790d44..38ef03b33c 100644
--- a/lib/chef/win32/security/token.rb
+++ b/lib/chef/win32/security/token.rb
@@ -55,7 +55,7 @@ class Chef
def adjust_privileges(privileges_struct)
if privileges_struct[:PrivilegeCount] > 0
- Chef::ReservedNames::Win32::Security::adjust_token_privileges(self, privileges_struct)
+ Chef::ReservedNames::Win32::Security.adjust_token_privileges(self, privileges_struct)
end
end