summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/ntvfs/posix/pvfs_setfileinfo.c2
-rw-r--r--source4/ntvfs/posix/pvfs_unlink.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_setfileinfo.c b/source4/ntvfs/posix/pvfs_setfileinfo.c
index 42ee8a971c..6a9e2003f4 100644
--- a/source4/ntvfs/posix/pvfs_setfileinfo.c
+++ b/source4/ntvfs/posix/pvfs_setfileinfo.c
@@ -64,7 +64,7 @@ NTSTATUS pvfs_setfileinfo(struct ntvfs_module_context *ntvfs,
/* Set the date on this file */
if (utime(f->name->full_name, &unix_times) == -1) {
- return NT_STATUS_ACCESS_DENIED;
+ return pvfs_map_errno(pvfs, errno);
}
break;
diff --git a/source4/ntvfs/posix/pvfs_unlink.c b/source4/ntvfs/posix/pvfs_unlink.c
index d5e25b5622..5733722ad5 100644
--- a/source4/ntvfs/posix/pvfs_unlink.c
+++ b/source4/ntvfs/posix/pvfs_unlink.c
@@ -100,7 +100,8 @@ NTSTATUS pvfs_unlink(struct ntvfs_module_context *ntvfs,
}
for (i=0;i<dir->count;i++) {
- status = pvfs_unlink_one(pvfs, req, dir->unix_path, dir->names[i], unl->in.attrib);
+ status = pvfs_unlink_one(pvfs, req, dir->unix_path,
+ dir->names[i], unl->in.attrib);
if (NT_STATUS_IS_OK(status)) {
total_deleted++;
}