From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Tue, 30 Mar 2021 18:53:37 +0200 Subject: [LTP] [PATCH] syscalls/chdir01: Add umask before mkdir In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it 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