summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-06-11 07:46:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:59 -0500
commitbda75f7e90f1d092be87c6ab9a6f209ce5d45138 (patch)
tree6656c486efbbd6344b95c21a5401c815c18c00d4 /source4/ntvfs/posix
parent68ff6b126254fc74090bc00b9c0cd586985dca79 (diff)
downloadsamba-bda75f7e90f1d092be87c6ab9a6f209ce5d45138.tar.gz
samba-bda75f7e90f1d092be87c6ab9a6f209ce5d45138.tar.bz2
samba-bda75f7e90f1d092be87c6ab9a6f209ce5d45138.zip
r7488: update the mode in the struct too,
that fixes the RAW-RENAME test metze (This used to be commit e27c1ab89b21726d3c9e7f8f7af22d1ff38f2413)
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_util.c b/source4/ntvfs/posix/pvfs_util.c
index 7eedc38cf9..d716834fed 100644
--- a/source4/ntvfs/posix/pvfs_util.c
+++ b/source4/ntvfs/posix/pvfs_util.c
@@ -149,7 +149,8 @@ NTSTATUS pvfs_copy_file(struct pvfs_state *pvfs,
unlink(name2->full_name);
return status;
}
-
+
+ name2->st.st_mode = mode;
name2->dos = name1->dos;
status = pvfs_dosattrib_save(pvfs, name2, fd2);