]> sourceware.org Git - newlib-cygwin.git/commit
Fix passwd getting error 1265 when running on newer Windows
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 31 Aug 2016 10:08:34 +0000 (12:08 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 31 Aug 2016 10:08:34 +0000 (12:08 +0200)
commit472e5439e7c7c7ecb552149de494f91540b55f8b
tree40fd8906e0a32e7c68a35be6c6aa8c2ea8c341ba
parentabd37f0c79aa33f53d829bf68511bb78308646f1
Fix passwd getting error 1265 when running on newer Windows

On Windows 8.1 and later, the NetUserChangePassword call apparently
doesn't accept the usual "\\server" string anymore, but requires to
use the "domain" instead, otherwise it emits en error code 1265,
ERROR_DOWNGRADE_DETECTED.  Since this is accepted by pre-8.1 as well,
use the domain indiscriminately when calling NetUserChangePassword
from passwd(1).

While at it, do some minor cleanup in passwd.c.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/release/2.6.0
winsup/utils/passwd.c
This page took 0.030065 seconds and 5 git commands to generate.