summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-24 13:41:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:02:27 -0500
commit36e32628468ca4b84f06d45698771a6903b5c47f (patch)
tree8a5bb3e1bfaad568d2b1a25c8bdc0c3618d6d0f2
parent5ea5d5c2355eb0789131cd5d9ffffc5b004b02c8 (diff)
downloadsamba-36e32628468ca4b84f06d45698771a6903b5c47f.tar.gz
samba-36e32628468ca4b84f06d45698771a6903b5c47f.tar.bz2
samba-36e32628468ca4b84f06d45698771a6903b5c47f.zip
r3160: recognise RAW_SFILEINFO_DISPOSITION_INFORMATION (fixes temporary files from excel)
(This used to be commit 1c05147f7103127c11b06bb0a812970577ace5f6)
-rw-r--r--source4/ntvfs/posix/pvfs_setfileinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_setfileinfo.c b/source4/ntvfs/posix/pvfs_setfileinfo.c
index 0de87b8584..74b0ed85c5 100644
--- a/source4/ntvfs/posix/pvfs_setfileinfo.c
+++ b/source4/ntvfs/posix/pvfs_setfileinfo.c
@@ -48,6 +48,7 @@ NTSTATUS pvfs_setfileinfo(struct ntvfs_module_context *ntvfs,
return pvfs_map_errno(pvfs, errno);
}
break;
+
case RAW_SFILEINFO_SETATTRE:
unix_times.actime = info->setattre.in.access_time;
unix_times.modtime = info->setattre.in.write_time;
@@ -66,7 +67,9 @@ NTSTATUS pvfs_setfileinfo(struct ntvfs_module_context *ntvfs,
return NT_STATUS_ACCESS_DENIED;
}
break;
+
case RAW_SFILEINFO_DISPOSITION_INFO:
+ case RAW_SFILEINFO_DISPOSITION_INFORMATION:
if (!(f->access_mask & STD_RIGHT_DELETE_ACCESS)) {
return NT_STATUS_ACCESS_DENIED;
}