s3: smbd: Remove the last lp_posix_pathnames() in the rename path.
authorJeremy Allison <jra@samba.org>
Thu, 10 Mar 2016 23:15:34 +0000 (15:15 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 14 Mar 2016 22:02:09 +0000 (23:02 +0100)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <rb@sernet.de>
source3/smbd/reply.c

index b88c2cfa2a2efece559e9506c7ced76760f0a7a2..c18eb38722a591d2c3ff0cd2fec818c723eb472e 100644 (file)
@@ -6808,7 +6808,7 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
                          smb_fname_str_dbg(smb_fname_dst)));
 
                if (!fsp->is_directory &&
-                   !lp_posix_pathnames() &&
+                   !(fsp->posix_flags & FSP_POSIX_FLAGS_PATHNAMES) &&
                    (lp_map_archive(SNUM(conn)) ||
                    lp_store_dos_attributes(SNUM(conn)))) {
                        /* We must set the archive bit on the newly