mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
Updating changes from HEAD.
(This used to be commit 20efb6252cd95fe9ce08298cfdd29d975a53f241)
This commit is contained in:
parent
1cee6e571e
commit
ad43ee6f5b
@ -90,7 +90,8 @@ canonicalize (char *path)
|
||||
if (realpath (path, canonical))
|
||||
return canonical;
|
||||
|
||||
pstrcpy (canonical, path);
|
||||
strncpy (canonical, path, PATH_MAX);
|
||||
canonical[PATH_MAX] = '\0';
|
||||
return canonical;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user