mount.cifs: set parsed_info->got_user when a cred file supplies a username
authorJeff Layton <jlayton@samba.org>
Sun, 13 Jan 2013 03:02:01 +0000 (22:02 -0500)
committerJeff Layton <jlayton@samba.org>
Sun, 13 Jan 2013 10:49:06 +0000 (05:49 -0500)
commit1a01f7c4b90695211d12291d7a24bec05b1f2922
tree90bd99bcda5958aa2375a1cb84f97f8fc117165f
parent739289ad3ce915e1ee2705ecd7ac4e907cd91405
mount.cifs: set parsed_info->got_user when a cred file supplies a username

commit 85d18a1ed introduced a regression when using a credentials file.
It set the username in the parsed mount info properly, but didn't set
the "got_user" flag in it.

Also, fix an incorrect strlcpy length specifier in open_cred_file.

Reported-by: "Mantas M." <grawity@gmail.com>
Signed-off-by: Jeff Layton <jlayton@samba.org>
mount.cifs.c