Menu

#49 Perforce fails with empty password

1.6.4.0
open
nobody
5
2006-06-15
2006-06-15
No

P4 SCC fails if no password or an empty password is
specified.

To fix this:
in P4Repository.cs, P4Repository.GetDefaultArgs():

replace
args.Append(" -P ");
args.Append(passwd);

with:
if (passwd != null && passwd != string.Empty)
{
args.Append(" -P ");
args.Append(passwd);
}

Discussion


Log in to post a comment.