commit | 3c12b287ec819006593db1011668e1279d787459 | [log] [tgz] |
---|---|---|
author | Michael Forney <mforney@mforney.org> | Fri Jul 08 10:24:14 2016 -0700 |
committer | sin <sin@2f30.org> | Sat Jul 09 10:17:16 2016 +0100 |
tree | f8abf9ae6c0307ee437268fa137623a6fc12d743 | |
parent | 2e5f1281ed4c5f16b9510263ecd05a3755de052f [diff] |
touch: Avoid unnecessary call to stat Now, we first try a utimensat. If it succeeds, we are done, if not (and no -c flag), create the file, then set the times with futimens.