git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3bd5e8
)
Ensure we use PATH_MAX for symlinks.
author
Jeremy Allison
<jra@samba.org>
Sat, 17 Nov 2007 01:06:57 +0000
(17:06 -0800)
committer
Jeremy Allison
<jra@samba.org>
Sat, 17 Nov 2007 01:06:57 +0000
(17:06 -0800)
Jeremy.
source/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source/smbd/trans2.c
b/source/smbd/trans2.c
index 3abc0d065ca7d2d10cae74d16a0c45757227b427..bb24db9ee131d3ea394581498089e4f3aa345ebb 100644
(file)
--- a/
source/smbd/trans2.c
+++ b/
source/smbd/trans2.c
@@
-4168,7
+4168,7
@@
total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
case SMB_QUERY_FILE_UNIX_LINK:
{
- char *buffer = TALLOC_ARRAY(ctx, char,
1024
);
+ char *buffer = TALLOC_ARRAY(ctx, char,
PATH_MAX+1
);
if (!buffer) {
reply_nterror(req, NT_STATUS_NO_MEMORY);
@@
-4187,7
+4187,7
@@
total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
return;
#endif
len = SMB_VFS_READLINK(conn,fullpathname,
- buffer,
1023
);
+ buffer,
PATH_MAX
);
if (len == -1) {
reply_unixerror(req, ERRDOS,
ERRnoaccess);