etc win32utils is case sensitive

P

Peña, Botp

Hi Win32 Team,

1. The getpwnam is case sensitive. This is windows, so it should _not_.

2. Also, the msg error says ": can't find user for patchlink". Shouldn't
that be ":can't find user patchlink for host bgpatch"?

thanks and kind regards -botp

---------8<------------------
irb(main):005:0> p Etc.getpwnam("patchlink","bgpatch")
ArgumentError: can't find user for patchlink
from (irb):5:in `getpwnam'
from (irb):5
irb(main):006:0> p Etc.getpwnam("PatchLink","bgpatch")
#<struct Struct::passwd name="PatchLink", uid=1003, comment="Patchlink Agent
User", usr_comment="", fu
ame="PatchLink", priv="admin", auth_flags=[], password_age=12331032,
home_dir="", parms="", last_logon
6384943, last_logoff=0, bad_pw_count=0, num_logons=6718,
logon_server="\\\\*", country_code=0, worksta
s="", max_storage=4294967295, code_page=0>
=> nil
---------8<------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top