mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
vfs_gpfs: Explicitly log when share mode has been denied
As this denies access to a file, provide a better error message for easier troubleshooting. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
a64978e0dc
commit
191e375d20
@ -135,7 +135,13 @@ static int set_gpfs_sharemode(files_struct *fsp, uint32_t access_mask,
|
||||
return 0;
|
||||
}
|
||||
|
||||
DEBUG(10, ("gpfs_set_share failed: %s\n", strerror(errno)));
|
||||
if (errno == EACCES) {
|
||||
DBG_NOTICE("GPFS share mode denied for %s/%s.\n",
|
||||
fsp->conn->connectpath,
|
||||
fsp->fsp_name->base_name);
|
||||
} else {
|
||||
DEBUG(10, ("gpfs_set_share failed: %s\n", strerror(errno)));
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user