mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
16 lines
729 B
Diff
16 lines
729 B
Diff
X-Git-Url: https://git.samba.org/?p=cifs-utils.git;a=blobdiff_plain;f=mount.cifs.c;h=40b77e92e3f734c606f522ccf279a0508ad64eab;hp=c7c3055cb890764937193b1d50d1f0fb7ae18826;hb=1a01f7c4b90695211d12291d7a24bec05b1f2922;hpb=739289ad3ce915e1ee2705ecd7ac4e907cd91405
|
|
|
|
diff --git a/mount.cifs.c b/mount.cifs.c
|
|
index c7c3055..40b77e9 100644
|
|
--- a/mount.cifs.c
|
|
+++ b/mount.cifs.c
|
|
@@ -581,7 +581,8 @@ static int open_cred_file(char *file_name,
|
|
switch (parse_cred_line(line_buf + i, &temp_val)) {
|
|
case CRED_USER:
|
|
strlcpy(parsed_info->username, temp_val,
|
|
- sizeof(parsed_info->domain));
|
|
+ sizeof(parsed_info->username));
|
|
+ parsed_info->got_user = 1;
|
|
break;
|
|
case CRED_PASS:
|
|
i = set_password(parsed_info, temp_val);
|