X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fscripts%2Flfs_migrate;h=c2855106e38f5ea285fbedd2b47d1923920f7380;hb=49c61548c35d67f34120fd64916a55fd20a6ab68;hp=7d9386f6f87fc7c0f1220bad6d7ab275307554cc;hpb=91707ff6ba5130811a9350c8ce8c102d29a5930e;p=fs%2Flustre-release.git diff --git a/lustre/scripts/lfs_migrate b/lustre/scripts/lfs_migrate index 7d9386f..c285510 100755 --- a/lustre/scripts/lfs_migrate +++ b/lustre/scripts/lfs_migrate @@ -90,6 +90,12 @@ $RSYNC --help 2>&1 | grep -q acls && RSYNC_OPTS="$RSYNC_OPTS -A" # If rsync copies lustre xattrs in the future, then we can skip lfs (bug 22189) strings $(which $RSYNC) 2>&1 | grep -q lustre && LFS=: +# rsync creates its temporary files with lenient permissions, even if +# permissions on the original files are more strict. Tighten umask here +# to avoid the brief window where unprivileged users might be able to +# access the temporary file. +umask 0077 + lfs_migrate() { while IFS='' read -d '' OLDNAME; do $ECHO -n "$OLDNAME: "