diff mbox series

[1/2] doc/C-Test-API: Mention umask(0) in the library

Message ID 20240307232511.228396-1-pvorel@suse.cz
State Changes Requested
Headers show
Series [1/2] doc/C-Test-API: Mention umask(0) in the library | expand

Commit Message

Petr Vorel March 7, 2024, 11:25 p.m. UTC
Update after 50626b4a1.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 doc/C-Test-API.asciidoc | 3 +++
 1 file changed, 3 insertions(+)

Comments

Andrea Cervesato Jan. 14, 2025, 11:39 a.m. UTC | #1
Hi Petr,

this is worth to be merged in the new documentation. What do you think?

Andrea

On 3/8/24 00:25, Petr Vorel wrote:
> 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()
>   ~~~~~~~~~~~~
>
diff mbox series

Patch

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()
 ~~~~~~~~~~~~