mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
Added the O_NOFOLLOW flag if follow symlinks is set off.
Jeremy. (This used to be commit 4f1f5f28b514dda86f6f49465bd5887357e37bc6)
This commit is contained in:
parent
1d40138232
commit
68245b54cd
@ -37,6 +37,12 @@ static int fd_open(struct connection_struct *conn, char *fname,
|
||||
#ifdef O_NONBLOCK
|
||||
flags |= O_NONBLOCK;
|
||||
#endif
|
||||
|
||||
#ifdef O_NOFOLLOW
|
||||
if (!lp_symlinks(SNUM(conn)))
|
||||
flags |= O_NOFOLLOW;
|
||||
#endif
|
||||
|
||||
fd = conn->vfs_ops.open(conn,fname,flags,mode);
|
||||
|
||||
/* Fix for files ending in '.' */
|
||||
|
Loading…
x
Reference in New Issue
Block a user