![]() TRUNCATE_FILE is now handled by a new dedicated function truncate_file(). Indeed we have to take special care when truncating existing file since the behavior is only specified for regular files. Well that's not entirely true for fifo and terminal devices since O_TRUNC is ignored in this case but even in for these types of file, truncating is probably not the right thing to do. It is worth noting that both truncate_file() and create_file() have been modified so they use fstat(2) instead of stat(2) since both functions are not supposed to follow symlinks. |
||
---|---|---|
.. | ||
tmpfiles.c |