commit | 025859c919ecdc22eeb69b824f52259b978d2fa9 | [log] [tgz] |
---|---|---|
author | Bart De Schuymer <bdschuym@pandora.be> | Fri Dec 11 17:35:01 2009 +0000 |
committer | Bart De Schuymer <bdschuym@pandora.be> | Fri Dec 11 17:35:01 2009 +0000 |
tree | e5f333055422c43377bbb0af8dd4fee7de453714 | |
parent | e4e4faa750404992d9761186d11ada4cd343e580 [diff] |
fix return value checking of creat
diff --git a/communication.c b/communication.c index 02ea1eb..c45ebec 100644 --- a/communication.c +++ b/communication.c
@@ -189,8 +189,8 @@ int size; int fd; - /* Start from an empty file with right priviliges */ - if (!(fd = creat(filename, 0600))) { + /* Start from an empty file with the correct priviliges */ + if ((fd = creat(filename, 0600)) == -1) { ebt_print_error("Couldn't create file %s", filename); return; }