[LTP] [PATCH] syscalls/chdir01: Add umask before mkdir

Petr Vorel pvorel@suse.cz
Tue Mar 30 18:53:37 CEST 2021


Hi Gongyi,

> Umask is always 022 in many system env. In this testcase, if umask is not 022,
> for example, umask is 0077, test would fail because the file mode is affected
> by umask.
Thanks a lot for a giving example. I tested only 0066.

I'm sorry I accepted the Ziyao version as it had better description, reverted
back changes and will work on any mode in SAFE_MKDIR(). I put your Reported-by:
tag.

I'll also send one more fix for exfat.

Kind regards,
Petr


More information about the ltp mailing list