In case umask config is specified in the config, it is only applied on newly created files, but not on folders.
Reproduction:
Run uMTP-responder with a umask config. I used 111.
Connect to a host, and create a folder on the storage.
In the newly created folder create a new file.
On the Linux host where uMTP-responder is running, check the newly created folder and file.
Expected result: both the folder and the file inside the folder have the same permissions, specified by the umask config.
Actual result: the file has correct permissions, but the folder comes with 700 permissions. Using a different Linux user the file might be accessible on its own, but the folder that contains it is not accessible.
In case umask config is specified in the config, it is only applied on newly created files, but not on folders.
Reproduction:
Expected result: both the folder and the file inside the folder have the same permissions, specified by the umask config.
Actual result: the file has correct permissions, but the folder comes with 700 permissions. Using a different Linux user the file might be accessible on its own, but the folder that contains it is not accessible.