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:
parent
e90ab07050
commit
8af9b5e42e
@ -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;
|
||||
|
||||
|
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user