diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-27 15:34:28 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-27 15:34:28 +0000 |
commit | 2c90b313b8e98f21c04fd9c8c69e52ca054fd13c (patch) | |
tree | 094221dfaf06d2d00b7166f02f3ba7e94d455192 /utils | |
parent | 8ce7f28b4c2cb1fbe79b82f470a696ea9d477761 (diff) |
open(2) needs a mode argument when O_CREAT is specified.
(Closes issue #12083)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104534 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils')
-rw-r--r-- | utils/astcanary.c | 2 |
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); |