Skip to content

Commit

Permalink
use octal conversion for chmod permissions
Browse files Browse the repository at this point in the history
fixes #507
  • Loading branch information
MrBrax committed Apr 27, 2024
1 parent d6a16e9 commit 4aa04da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/Core/Providers/Base/BaseVOD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,10 @@ export class BaseVOD {
Config.getInstance().cfg("file_chown_uid"),
Config.getInstance().cfg("file_chown_gid")
);
fs.chmodSync(fullpath, Config.getInstance().cfg("file_chmod"));
fs.chmodSync(
fullpath,
parseInt(Config.getInstance().cfg("file_chmod"), 8)
);
}
}
}
Expand Down

0 comments on commit 4aa04da

Please sign in to comment.