fix: Block creating files with non-existing parent directories using O_CREATE

This commit is contained in:
Felicitas Pojtinger
2022-01-12 22:39:00 +01:00
parent 5ed0eec75e
commit 3a0165895a
3 changed files with 34 additions and 20 deletions

View File

@@ -193,7 +193,7 @@ var serveFTPCmd = &cobra.Command{
)
},
viper.GetBool(readOnlyFlag),
true, // FTP requires read permission even if `O_WRONLY` is set if cache is enabled
true, // FTP requires read permission even if `O_WRONLY` is set if cache is enabled, as the cache needs to read the written file
func(hdr *config.Header) {
jsonLogger.Trace("Header transform", hdr)