diff options
Diffstat (limited to 'source3/modules/vfs_readonly.c')
-rw-r--r-- | source3/modules/vfs_readonly.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/modules/vfs_readonly.c b/source3/modules/vfs_readonly.c index f736028168..afb167f045 100644 --- a/source3/modules/vfs_readonly.c +++ b/source3/modules/vfs_readonly.c @@ -62,6 +62,11 @@ static int readonly_connect(vfs_handle_struct *handle, const char **period = lp_parm_string_list(SNUM(handle->conn), (handle->param ? handle->param : MODULE_NAME), "period", period_def); + int ret = SMB_VFS_NEXT_CONNECT(handle, service, user); + + if (ret < 0) { + return ret; + } if (period && period[0] && period[1]) { int i; @@ -85,11 +90,11 @@ static int readonly_connect(vfs_handle_struct *handle, conn->vuid_cache.next_entry = 0; } - return SMB_VFS_NEXT_CONNECT(handle, service, user); + return 0; } else { - return 1; + return 0; } } |