diff options
author | Gerald Carter <jerry@samba.org> | 2005-07-22 03:35:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:15 -0500 |
commit | 9365669a5988ea67764e051d626f664daf6596eb (patch) | |
tree | 1557aecde52de73d7d9fb36c562a91f8bc9fd27d /source3/smbd | |
parent | d6973499de8d70662178e9b558a3f5d2c70f203d (diff) | |
download | samba-9365669a5988ea67764e051d626f664daf6596eb.tar.gz samba-9365669a5988ea67764e051d626f664daf6596eb.tar.bz2 samba-9365669a5988ea67764e051d626f664daf6596eb.zip |
r8697: BUG 2908: make sure to allow for the trailing NULL
(This used to be commit 3b505a824365222352be6a5ad2fb26586415a7a3)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/msdfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index fffe44ab60..d0438b01af 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -251,8 +251,7 @@ BOOL is_msdfs_link(connection_struct* conn, char * path, if (S_ISLNK(sbufp->st_mode)) { /* open the link and read it */ - referral_len = SMB_VFS_READLINK(conn, path, referral, - sizeof(pstring)); + referral_len = SMB_VFS_READLINK(conn, path, referral, sizeof(pstring)-1); if (referral_len == -1) { DEBUG(0,("is_msdfs_link: Error reading msdfs link %s: %s\n", path, strerror(errno))); return False; |