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>
This commit is contained in:
@@ -84,3 +84,6 @@ Bug Fixes
|
||||
|
||||
- Fix off_t typedef on 64-bit.
|
||||
Addresses: https://sourceware.org/ml/newlib/2016/msg01028.html
|
||||
|
||||
- Fix weird problem running passwd on newer Windows versions.
|
||||
Addresses: https://cygwin.com/ml/cygwin/2016-08/msg00608.html
|
||||
|
Reference in New Issue
Block a user