Commit 58ae4e74 authored by Russ Fish's avatar Russ Fish

Incorrect logic to handle either "pubkeys" or "windows" arg to doaccounts.

parent edbdc5ea
......@@ -1898,10 +1898,11 @@ COMMAND_PROTOTYPE(doaccounts)
/*
* Locally, everything is NFS mounted so no point in
* sending back pubkey stuff; it's never used except on CygWin.
* Add an argument of "pubkeys" to get the PUBKEY data on CygWin.
* Add an argument of "pubkeys" to get the PUBKEY data.
* An "windows" argument also returns a user's Windows Password.
*/
if (reqp->islocal && (strncmp(rdata, "pubkeys", 7) != 0
|| strncmp(rdata, "windows", 7) != 0))
if (reqp->islocal && ! (strncmp(rdata, "pubkeys", 7) == 0
|| strncmp(rdata, "windows", 7) == 0))
goto skipsshkeys;
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment