r3179: - fixed error return on utime failure
authorAndrew Tridgell <tridge@samba.org>
Mon, 25 Oct 2004 01:56:29 +0000 (01:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:04:37 +0000 (13:04 -0500)
- formatting fix
(This used to be commit 8ca4d7c51e5c76aa28f600d49437a45a8a0d31a9)

source4/ntvfs/posix/pvfs_setfileinfo.c
source4/ntvfs/posix/pvfs_unlink.c

index 42ee8a971cce6bdb482d4a9184ca91780c59a79b..6a9e2003f47f71b8bab6030cf590d223f34403f7 100644 (file)
@@ -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;
 
index d5e25b5622c7beb063308828d9f33582bec70eef..5733722ad5ff2f4663532b710889644444eec5d4 100644 (file)
@@ -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++;
                }