summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/astcanary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/astcanary.c b/utils/astcanary.c
index eb9f17208..785ec14c4 100644
--- a/utils/astcanary.c
+++ b/utils/astcanary.c
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
/* Update the modification times (checked from Asterisk) */
if (utime(argv[1], NULL)) {
/* Recreate the file if it doesn't exist */
- if ((fd = open(argv[1], O_RDWR | O_TRUNC | O_CREAT)) > -1)
+ if ((fd = open(argv[1], O_RDWR | O_TRUNC | O_CREAT, 0777)) > -1)
close(fd);
else
exit(1);