fix UAM parsing

afpcmd 'afp://username;AUTH=UAMName:password@server/volume' now works as expected.
This commit is contained in:
Simon Vetter 2013-03-13 15:20:48 -07:00
parent ec7b7475ab
commit 2017974c85

View File

@ -33,12 +33,7 @@ static int check_port(char * port)
static int check_uamname(const char * uam)
{
char * p;
for (p=(char *)uam;*p;p++) {
if (*p==' ') continue;
if ((*p<'A') || (*p>'z')) return -1;
}
return 0;
return !uam_string_to_bitmap(uam);
}
static int check_username(const char * user)