mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
vfs_gpfs: Check error from gpfswrap_lib_init
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
3b72136f67
commit
25e1e487a5
@ -2041,7 +2041,12 @@ static int vfs_gpfs_connect(struct vfs_handle_struct *handle,
|
||||
return 0;
|
||||
}
|
||||
|
||||
gpfswrap_lib_init(0);
|
||||
ret = gpfswrap_lib_init(0);
|
||||
if (ret < 0) {
|
||||
DBG_ERR("Could not open GPFS device file: %s\n",
|
||||
strerror(errno));
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = gpfswrap_register_cifs_export();
|
||||
if (ret < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user