summaryrefslogtreecommitdiff
path: root/pattest.c
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-21 08:56:51 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-21 08:56:51 +0000
commitc4db974e346100b4a30f438a9dec3e9163baade5 (patch)
tree3971cb358de012be9f91b49ee6a7376d62a1bebc /pattest.c
parenta98edb641566f3531f684f19038fedfa8fff46ed (diff)
* Add an explicit mode to the callto open (the default one that is used
anyway). * Clarify error message. * Remove the mode parameter when opening a zap device (it is ignored anyway). Fix patgen's usage message while we're there. closes #10505 on Zaptel trunk. Merged revisions 2914 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 Merged revisions 2915 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.4 git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2916 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'pattest.c')
-rw-r--r--pattest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pattest.c b/pattest.c
index 1923614..d14311a 100644
--- a/pattest.c
+++ b/pattest.c
@@ -45,7 +45,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Usage: %s <zap device> [optional timeout]\n",argv[0]);
exit(1);
}
- fd = open(argv[1], O_RDWR, 0600);
+ fd = open(argv[1], O_RDWR);
if (fd < 0) {
fprintf(stderr, "Unable to open %s: %s\n", argv[1], strerror(errno));
exit(1);