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

Andrea Cervesato andrea.cervesato@suse.com
Tue Jan 14 12:39:24 CET 2025


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


More information about the ltp mailing list