mirror of
https://github.com/mabam/afpfs-ng-mac.git
synced 2024-12-29 13:29:19 +00:00
fix UAM parsing
afpcmd 'afp://username;AUTH=UAMName:password@server/volume' now works as expected.
This commit is contained in:
parent
ec7b7475ab
commit
2017974c85
@ -33,12 +33,7 @@ static int check_port(char * port)
|
|||||||
|
|
||||||
static int check_uamname(const char * uam)
|
static int check_uamname(const char * uam)
|
||||||
{
|
{
|
||||||
char * p;
|
return !uam_string_to_bitmap(uam);
|
||||||
for (p=(char *)uam;*p;p++) {
|
|
||||||
if (*p==' ') continue;
|
|
||||||
if ((*p<'A') || (*p>'z')) return -1;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int check_username(const char * user)
|
static int check_username(const char * user)
|
||||||
|
Loading…
Reference in New Issue
Block a user