diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rc/checkpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c index 0aee4465..86623d94 100644 --- a/src/rc/checkpath.c +++ b/src/rc/checkpath.c @@ -61,7 +61,7 @@ do_check(char *path, uid_t uid, gid_t gid, mode_t mode, inode_t type, bool trunc struct stat st; int fd, flags; - if (stat(path, &st)) { + if (stat(path, &st) || trunc) { if (type == inode_file) { einfo("%s: creating file", path); if (!mode) /* 664 */ |