Skip to content

Commit

Permalink
Incorporate change to set umask properly when creating USD files, as
Browse files Browse the repository at this point in the history
  • Loading branch information
marktucker committed Sep 12, 2021
1 parent dc7c1df commit 7707124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxr/base/tf/atomicRenameUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Tf_AtomicRenameFileOver(std::string const &srcFileName,
} else {
const mode_t mask = umask(0);
umask(mask);
fileMode = DEFFILEMODE - mask;
fileMode = DEFFILEMODE & ~mask;
}

if (chmod(srcFileName.c_str(), fileMode) != 0) {
Expand Down

0 comments on commit 7707124

Please sign in to comment.