commit | 0941c9ab2c47447755b0d2267bd76ae3f5b9318a | [log] [tgz] |
---|---|---|
author | Michael Forney <mforney@mforney.org> | Fri Jul 08 10:24:11 2016 -0700 |
committer | sin <sin@2f30.org> | Sat Jul 09 10:17:16 2016 +0100 |
tree | f21a018b052b70e96250d01c40695569f49e3e11 | |
parent | a211649cfdd29e2e0f7c078e0417c3baa4aafecf [diff] |
touch: Respect caller's umask Currently, if the caller has a umask of 002 or 000, the file gets created as 644 anyway. Also, add O_WRONLY to the open call, since POSIX says that "Applications shall specify exactly one of the first five values (file access modes) below in the value of oflag".