1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r3179: - fixed error return on utime failure

- formatting fix
(This used to be commit 8ca4d7c51e)
This commit is contained in:
Andrew Tridgell 2004-10-25 01:56:29 +00:00 committed by Gerald (Jerry) Carter
parent e90ab07050
commit 8af9b5e42e
2 changed files with 3 additions and 2 deletions

View 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;

View 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++;
}