store hostname of the user, and pass it to scripts.

This commit is contained in:
Nikos Mavrogiannopoulos
2013-02-05 21:21:40 +01:00
parent 83a07083fd
commit 40c9a094a7
10 changed files with 20 additions and 7 deletions
+4
View File
@@ -343,6 +343,10 @@ struct cmd_auth_req_st areq;
snprintf(areq.user, sizeof(areq.user), "%s", username);
snprintf(areq.pass, sizeof(areq.pass), "%s", password);
}
if (req->hostname[0] != 0) {
memcpy(areq.hostname, req->hostname, sizeof(areq.hostname));
}
ret = auth_user(ws, &areq);
if (ret < 0) {