Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC
Commits: aedf1d4a by Hugo Beauzée-Luyssen at 2021-12-15T14:25:41+01:00 VLSub: Fix userdata directory creation Fix #26356 (cherry picked from commit e25389467299a73bf95d3a3d7d05e93f52eaf1df) Signed-off-by: Hugo Beauzée-Luyssen <[email protected]> - - - - - 1 changed file: - share/lua/extensions/VLSub.lua Changes: ===================================== share/lua/extensions/VLSub.lua ===================================== @@ -664,9 +664,14 @@ function check_config() local filePath = slash.."vlsub_conf.xml" openSub.conf.dirPath = vlc.config.userdatadir() + local res,err = vlc.io.mkdir( openSub.conf.dirPath, "0700" ) + if res ~= 0 and err ~= vlc.errno.EEXIST then + vlc.msg.warn("Failed to create " .. openSub.conf.dirPath) + return false + end local subdirs = { "lua", "extensions", "userdata", "vlsub" } for _, dir in ipairs(subdirs) do - local res, err = vlc.io.mkdir( openSub.conf.dirPath .. slash .. dir, "0700" ) + res, err = vlc.io.mkdir( openSub.conf.dirPath .. slash .. dir, "0700" ) if res ~= 0 and err ~= vlc.errno.EEXIST then vlc.msg.warn("Failed to create " .. openSub.conf.dirPath .. slash .. dir ) return false View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/aedf1d4a24239be24d66d2e3f82077612ed9cfe5 -- View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/aedf1d4a24239be24d66d2e3f82077612ed9cfe5 You're receiving this email because of your account on code.videolan.org.
_______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
