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