mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
This is really trying to be a StrnCpy (most names will overflow the 10 char
limit)
This commit is contained in:
parent
587ced729c
commit
0e04761abe
@ -73,7 +73,7 @@ static void check_for_pipe(char *fname)
|
||||
{
|
||||
/* special case of pipe opens */
|
||||
char s[10];
|
||||
safe_strcpy(s,fname,sizeof(s)-1);
|
||||
StrnCpy(s,fname,sizeof(s)-1);
|
||||
strlower(s);
|
||||
if (strstr(s,"pipe/")) {
|
||||
DEBUG(3,("Rejecting named pipe open for %s\n",fname));
|
||||
|
Loading…
x
Reference in New Issue
Block a user