diff mbox

[linux-cifs-client] Make credentials file parameters consistent with command line parameters

Message ID o2gb1fc6a561004031909j34b0e6c5gad6d591951e9e83@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Scott Lovenberg April 4, 2010, 2:09 a.m. UTC
None
diff mbox

Patch

@@ -358,7 +358,7 @@ 
 		if (newline)
 			*newline = '\0';
 
-		if (strncasecmp("username", line_buf + i, 8) == 0) {
+		if (strncasecmp("user", line_buf + i, 4) == 0) {
 			temp_val = strchr(line_buf + i, '=');
 			if (temp_val) {
 				/* go past equals sign */
@@ -380,7 +380,7 @@ 
 				strlcpy(parsed_info->username, temp_val,
 					sizeof(parsed_info->username));
 			}
-		} else if (strncasecmp("password", line_buf + i, 8) == 0) {
+		} else if (strncasecmp("pass", line_buf + i, 4) == 0) {
 			temp_val = strchr(line_buf + i, '=');
 			if (!temp_val)
 				continue;
@@ -388,7 +388,7 @@ 
 			i = set_password(parsed_info, temp_val);
 			if (i)
 				return i;
-		} else if (strncasecmp("domain", line_buf + i, 6) == 0) {
+		} else if (strncasecmp("dom", line_buf + i, 3) == 0) {
 			temp_val = strchr(line_buf + i, '=');
 			if (temp_val) {
 				/* go past equals sign */