diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2012-01-16 18:42:16 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2012-01-16 18:42:16 +0100 |
commit | 8f5375fa61acb4da83e855e40402d12be01a8c68 (patch) | |
tree | a8c61365b7a97648755de6acefdf596aabe4529b /sys/src/cmd/cifs/nterrstr.c | |
parent | b15accceac5f79106bb6a115985eed63284171cf (diff) |
cifs: updated cifs/smb client to quintiles latest version
Diffstat (limited to 'sys/src/cmd/cifs/nterrstr.c')
-rw-r--r-- | sys/src/cmd/cifs/nterrstr.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/sys/src/cmd/cifs/nterrstr.c b/sys/src/cmd/cifs/nterrstr.c index 8ec9c8ba1..5306ed30d 100644 --- a/sys/src/cmd/cifs/nterrstr.c +++ b/sys/src/cmd/cifs/nterrstr.c @@ -3,14 +3,14 @@ /* * some lines commented 4APE have been changed to - * make them the same as plan9 error messages. This is not + * make them the same as plan9 error messages. This is not * a problem for native programs but those built on APE * will give unhelpful errors if this is not done - */ +*/ static struct { - char *msg; - int err; + char *msg; + int err; } NTerrs[] = { { "success", 0x0 }, { "wait 1", 0x1 }, @@ -261,8 +261,8 @@ static struct { { "password restriction", 0xc000006c }, { "logon failure", 0xc000006d }, { "account restriction", 0xc000006e }, - { "invalid logon hours", 0xc000006f }, - { "invalid workstation", 0xc0000070 }, + { "login disallowed at this time", 0xc000006f }, + { "login disallowed from this workstation", 0xc0000070 }, { "password expired", 0xc0000071 }, { "account disabled", 0xc0000072 }, { "none mapped", 0xc0000073 }, @@ -959,7 +959,7 @@ static struct { { "SXS multiple deactivation", 0xc0150011 }, { "SXS system default activation context empty",0xc0150012 }, { "SXS process termination requested", 0xc0150013 }, -}; + }; char * nterrstr(uint err) @@ -1006,14 +1006,13 @@ nterrstr(uint err) match = i; why = ""; - if(!(err & 0x80000000)) + if(! (err & 0x80000000)) why = "warning, "; if(match != -1) - snprint(buf, sizeof buf, "%s%s%s", why, facility, - NTerrs[match].msg); + snprint(buf, sizeof(buf), "%s%s%s", why, facility, NTerrs[match].msg); else - snprint(buf, sizeof buf, "%s%s%d/0x%ux - unknown NT error", - why, facility, err, err); + snprint(buf, sizeof(buf), "%s%s%d/0x%ux - unknown NT error", why, facility, err, err); return buf; } + |