[LTP] [PATCH 1/2] doc/C-Test-API: Mention umask(0) in the library
Petr Vorel
pvorel@suse.cz
Fri Mar 8 00:25:10 CET 2024
Update after 50626b4a1.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
doc/C-Test-API.asciidoc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/doc/C-Test-API.asciidoc b/doc/C-Test-API.asciidoc
index 08a76c403..90cf1df43 100644
--- a/doc/C-Test-API.asciidoc
+++ b/doc/C-Test-API.asciidoc
@@ -2462,6 +2462,9 @@ settings which may clear some of the bits. If your test depends on specific
file permissions you need either to change umask to 0 or 'chmod()' the file
afterwards or use 'SAFE_TOUCH()' that does the 'chmod()' for you.
+NOTE: Temporarily clearing umask with 'umask(0)' is done before creating a new
+ subdir in the cgroup in 'cgroup_dir_mk()'.
+
2.2 access()
~~~~~~~~~~~~
--
2.43.0
More information about the ltp
mailing list