mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-28 06:09:59 +03:00
posix->linux for better mac compat
This commit is contained in:
parent
85a447af31
commit
ba0894a453
1 changed files with 1 additions and 1 deletions
2
web.d
2
web.d
|
@ -3431,7 +3431,7 @@ class Session {
|
||||||
// easily stolen. Note: if your shared host doesn't have different
|
// easily stolen. Note: if your shared host doesn't have different
|
||||||
// users on the operating system for each user, it's still possible
|
// users on the operating system for each user, it's still possible
|
||||||
// for them to access this file and hijack your session!
|
// for them to access this file and hijack your session!
|
||||||
version(Posix)
|
version(linux)
|
||||||
enforce(linux.chmod(toStringz(getFilePath()), octal!600) == 0, "chmod failed");
|
enforce(linux.chmod(toStringz(getFilePath()), octal!600) == 0, "chmod failed");
|
||||||
// FIXME: ensure the file's read permissions are locked down
|
// FIXME: ensure the file's read permissions are locked down
|
||||||
// on Windows too.
|
// on Windows too.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue