mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
parent
42e301570b
commit
3e581eeee9
@ -842,7 +842,6 @@ static NTSTATUS cmd_ftruncate(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int ar
|
||||
|
||||
static NTSTATUS cmd_lock(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv)
|
||||
{
|
||||
bool ret;
|
||||
int fd;
|
||||
int op;
|
||||
long offset;
|
||||
@ -914,7 +913,7 @@ static NTSTATUS cmd_lock(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, c
|
||||
|
||||
printf("lock: debug lock(fd=%d, op=%d, offset=%ld, count=%ld, type=%d))\n", fd, op, offset, count, type);
|
||||
|
||||
if ((ret = SMB_VFS_LOCK(vfs->files[fd], op, offset, count, type)) == False) {
|
||||
if (SMB_VFS_LOCK(vfs->files[fd], op, offset, count, type) == False) {
|
||||
printf("lock: error=%d (%s)\n", errno, strerror(errno));
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user