You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The "File chmod" option is not working because fs.chmodSync mode parameter needs an octal and not a decimal. The default value 775 in decimal gives 1407 in octal, so chmod sets -r-----rwt instead of -rwxrwxr-x.
Describe the bug
The "File chmod" option is not working because
fs.chmodSync
mode parameter needs an octal and not a decimal. The default value 775 in decimal gives 1407 in octal, so chmod sets-r-----rwt
instead of-rwxrwxr-x
.The error is here:
LiveStreamDVR/server/src/Core/Providers/Base/BaseVOD.ts
Line 2577 in bcde36b
Node.js doc of
fs.chmod
: https://nodejs.org/api/fs.html#fschmodpath-mode-callbackI suggest this change to fix the error (convert the number to a string, then parse it as octal) :
To Reproduce
-r-----rwt
instead of-rwxrwxr-x
)Expected behavior
The permission must be 775 (
-rwxrwxr-x
)Server:
Workaround
I set 509 (which is 775 in octal) for now, it works well.
The text was updated successfully, but these errors were encountered: