mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-06 20:16:25 +00:00
There were kernels that didn't apply the current umask to inode modes created with O_TMPFILE without acls. Let's have a test running to make sure that we're not surprised if we come across one. Signed-off-by: Zach Brown <zab@versity.com>
17 lines
308 B
Bash
17 lines
308 B
Bash
#
|
|
# basic tests of O_TMPFILE
|
|
#
|
|
|
|
t_require_commands stage_tmpfile hexdump
|
|
|
|
echo "== non-acl O_TMPFILE creation honors umask"
|
|
o_tmpfile_umask "$T_D0" "$T_D0/umask-file"
|
|
|
|
echo "== stage from tmpfile"
|
|
DEST_FILE="$T_D0/dest_file"
|
|
stage_tmpfile $T_D0 $DEST_FILE
|
|
hexdump -C "$DEST_FILE"
|
|
rm -f "$DEST_FILE"
|
|
|
|
t_pass
|