mirror of
https://github.com/samba-team/samba.git
synced 2025-11-08 16:23:49 +03:00
More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy.
This commit is contained in:
@@ -208,8 +208,12 @@ static void cli_cm_set_mntpoint( struct cli_state *c, const char *mnt )
|
||||
}
|
||||
|
||||
if ( p ) {
|
||||
pstrcpy( p->mount, mnt );
|
||||
clean_name(p->mount);
|
||||
char *name = clean_name(NULL, p->mount);
|
||||
if (!name) {
|
||||
return;
|
||||
}
|
||||
pstrcpy( p->mount, name );
|
||||
TALLOC_FREE(name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user