Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6

Pull CIFS fix from Steve French:
"Fixes a regression in cifs in which a password which begins with a
comma is parsed incorrectly as a blank password"

* 'for-next' of git://git.samba.org/sfrench/cifs-2.6:
cifs: Allow passwords which begin with a delimitor

+13 -3
+13 -3
fs/cifs/connect.c
··· 1575 1575 } 1576 1576 break; 1577 1577 case Opt_blank_pass: 1578 - vol->password = NULL; 1579 - break; 1580 - case Opt_pass: 1581 1578 /* passwords have to be handled differently 1582 1579 * to allow the character used for deliminator 1583 1580 * to be passed within them 1584 1581 */ 1585 1582 1583 + /* 1584 + * Check if this is a case where the password 1585 + * starts with a delimiter 1586 + */ 1587 + tmp_end = strchr(data, '='); 1588 + tmp_end++; 1589 + if (!(tmp_end < end && tmp_end[1] == delim)) { 1590 + /* No it is not. Set the password to NULL */ 1591 + vol->password = NULL; 1592 + break; 1593 + } 1594 + /* Yes it is. Drop down to Opt_pass below.*/ 1595 + case Opt_pass: 1586 1596 /* Obtain the value string */ 1587 1597 value = strchr(data, '='); 1588 1598 value++;