All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/chdir01: Add umask before mkdir
@ 2021-03-30 13:17 zhaogongyi
  2021-03-30 16:53 ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: zhaogongyi @ 2021-03-30 13:17 UTC (permalink / raw)
  To: ltp

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-31  2:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-30 13:17 [LTP] [PATCH] syscalls/chdir01: Add umask before mkdir zhaogongyi
2021-03-30 16:53 ` Petr Vorel
2021-03-31  2:19   ` [LTP] 答复: " xieziyao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.