summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-06-10 20:00:03 +0200
committerBjoern Jacke <bj@sernet.de>2012-06-10 21:38:08 +0200
commitf97ca7d64318343eb1fd2ed3d8248c6560166fb4 (patch)
tree07379cc97dbdebd74d5858316c20f21d2ffb6cf8 /source3
parentbff935b814355b8b75b422857c56aced0a6b1388 (diff)
downloadsamba-f97ca7d64318343eb1fd2ed3d8248c6560166fb4.tar.gz
samba-f97ca7d64318343eb1fd2ed3d8248c6560166fb4.tar.bz2
samba-f97ca7d64318343eb1fd2ed3d8248c6560166fb4.zip
s3: fix build on systems without O_NOFOLLOW
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index cb43dd28ca..189614a4b9 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -291,8 +291,8 @@ static NTSTATUS fd_open(struct connection_struct *conn,
fsp->fh->fd = SMB_VFS_OPEN(conn, smb_fname, fsp, flags, mode);
if (fsp->fh->fd == -1) {
-#ifdef O_NOFOLLOW
int posix_errno = errno;
+#ifdef O_NOFOLLOW
#if defined(ENOTSUP) && defined(OSF1)
/* handle special Tru64 errno */
if (errno == ENOTSUP) {