diff options
author | sin <sin@2f30.org> | 2014-09-26 17:03:08 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-26 17:03:08 +0100 |
commit | 2ad4bbe2388e8366ee001b7324b259a56d91cede (patch) | |
tree | 8ba4847f0ac05c5b7043a91c35a14c27152b57b2 /ratox.c | |
parent | d56dae7f6797d3079f0d2a58d5c2c0ee8a5ec5ac (diff) |
No need to open for writing
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -339,7 +339,7 @@ cbfriendrequest(Tox *m, const uint8_t *id, const uint8_t *data, uint16_t len, vo r = mkfifoat(gslots[REQUEST].fd[OUT], req->idstr, 0644); if (r < 0 && errno != EEXIST) eprintf("mkfifoat %s:", req->idstr); - r = openat(gslots[REQUEST].fd[OUT], req->idstr, O_RDWR | O_NONBLOCK); + r = openat(gslots[REQUEST].fd[OUT], req->idstr, O_RDONLY | O_NONBLOCK); if (r < 0) eprintf("openat %s:", req->idstr); req->fd = r; |