[njs] Added fs flags missed in 5c6aa60224cb (0.1.15).

Dmitry Volyntsev xeioex at nginx.com
Tue Jul 13 15:23:33 UTC 2021


details:   https://hg.nginx.org/njs/rev/537f897451ef
branches:  
changeset: 1676:537f897451ef
user:      hyeonisism <hyeonisism at gmail.com>
date:      Tue Jul 13 10:23:23 2021 +0900
description:
Added fs flags missed in 5c6aa60224cb (0.1.15).

This closes #405 issue on Github.

diffstat:

 src/njs_fs.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 42fdcacfd131 -r 537f897451ef src/njs_fs.c
--- a/src/njs_fs.c	Fri Jul 09 19:14:23 2021 +0000
+++ b/src/njs_fs.c	Tue Jul 13 10:23:23 2021 +0900
@@ -112,6 +112,8 @@ static njs_fs_entry_t njs_flags_table[] 
     { njs_str("w+"),  O_TRUNC  | O_CREAT  | O_RDWR },
     { njs_str("a"),   O_APPEND | O_CREAT  | O_WRONLY },
     { njs_str("a+"),  O_APPEND | O_CREAT  | O_RDWR },
+    { njs_str("as"),  O_SYNC   | O_APPEND | O_CREAT  | O_WRONLY },
+    { njs_str("as+"), O_SYNC   | O_APPEND | O_CREAT  | O_RDWR },
     { njs_str("rs"),  O_SYNC   | O_RDONLY },
     { njs_str("sr"),  O_SYNC   | O_RDONLY },
     { njs_str("wx"),  O_TRUNC  | O_CREAT  | O_EXCL | O_WRONLY },


More information about the nginx-devel mailing list