mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Do the formatting change in all 3 places :-)
(This used to be commit d32066eaef1d09ec41fd5365e18eacd93e485d53)
This commit is contained in:
parent
90ad42fad3
commit
c7522804a5
@ -231,8 +231,10 @@ static int open_cred_file(char * file_name)
|
||||
/* go past equals sign */
|
||||
temp_val++;
|
||||
for(length = 0;length<65;length++) {
|
||||
if(temp_val[length] == '\n' || temp_val[length] == '\0')
|
||||
if ((temp_val[length] == '\n')
|
||||
|| (temp_val[length] == '\0')) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(length > 64) {
|
||||
printf("mount.cifs failed: password in credentials file too long\n");
|
||||
@ -260,8 +262,10 @@ static int open_cred_file(char * file_name)
|
||||
if(verboseflag)
|
||||
printf("\nDomain %s\n",temp_val);
|
||||
for(length = 0;length<65;length++) {
|
||||
if(temp_val[length] == '\n' || temp_val[length] == '\0')
|
||||
break;
|
||||
if ((temp_val[length] == '\n')
|
||||
|| (temp_val[length] == '\0')) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(length > 64) {
|
||||
printf("mount.cifs failed: domain in credentials file too long\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user