From: Björn Jacke Date: Sun, 10 Jun 2012 18:00:03 +0000 (+0200) Subject: s3: fix build on systems without O_NOFOLLOW X-Git-Tag: samba-4.0.0beta2~243 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f97ca7d64318343eb1fd2ed3d8248c6560166fb4;p=thirdparty%2Fsamba.git s3: fix build on systems without O_NOFOLLOW --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index cb43dd28caa..189614a4b96 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) {