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

zhaogongyi zhaogongyi@huawei.com
Tue Mar 30 15:17:33 CEST 2021


Hi Petr,

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!

Best Regards,
Gongyi

> 
> > When uid is nobody, umask is not 022, the test process might
> Not sure if I understand "When uid is nobody, umask is not 022", umask
> setup depends usually on the system. I wonder which system has different
> setup for nobody.
> 
> BTW later was posted another solution, see my comments there.
> 
> Kind regards,
> Petr
> 
> [2]
> https://patchwork.ozlabs.org/project/ltp/patch/20210322091512.103266
> -1-xieziyao@huawei.com/
> 
> > has not permmission to access the file which created by SAFE_MKDIR
> > with mode 0755.


More information about the ltp mailing list