diff options
Diffstat (limited to 'fs/smb/server/mgmt/share_config.c')
-rw-r--r-- | fs/smb/server/mgmt/share_config.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/smb/server/mgmt/share_config.c b/fs/smb/server/mgmt/share_config.c index e0a6b75809..a2f0a2edce 100644 --- a/fs/smb/server/mgmt/share_config.c +++ b/fs/smb/server/mgmt/share_config.c @@ -165,12 +165,8 @@ static struct ksmbd_share_config *share_config_request(struct unicode_map *um, share->path = kstrndup(ksmbd_share_config_path(resp), path_len, GFP_KERNEL); - if (share->path) { + if (share->path) share->path_sz = strlen(share->path); - while (share->path_sz > 1 && - share->path[share->path_sz - 1] == '/') - share->path[--share->path_sz] = '\0'; - } share->create_mask = resp->create_mask; share->directory_mask = resp->directory_mask; share->force_create_mode = resp->force_create_mode; |