mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 11:18:30 +00:00
Fix bugs and add security features to redbean
- Fix a regression with the previous change that broke redbean - Add chroot(), resource limit, seccomp, and other stuff to redbean - Write lots and lots of documentation - Iron out more system call issues
This commit is contained in:
parent
f1dfa4bdfa
commit
7166679620
182 changed files with 1855 additions and 918 deletions
|
@ -24,6 +24,10 @@ void __stat2cosmo(struct stat *restrict st, const union metastat *ms) {
|
|||
if (st) {
|
||||
if (IsLinux()) {
|
||||
st->st_birthtim = st->st_ctim;
|
||||
if (st->st_atim.tv_sec < st->st_ctim.tv_sec)
|
||||
st->st_birthtim = st->st_atim;
|
||||
if (st->st_mtim.tv_sec < st->st_ctim.tv_sec)
|
||||
st->st_birthtim = st->st_mtim;
|
||||
} else if (IsXnu()) {
|
||||
st->st_dev = ms->xnu.st_dev;
|
||||
st->st_ino = ms->xnu.st_ino;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue