projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a311eed
)
Fix wrong error return value
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 25 Mar 2009 12:22:14 +0000
(13:22 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 25 Mar 2009 12:22:14 +0000
(13:22 +0100)
src/resolver.c
patch
|
blob
|
history
diff --git
a/src/resolver.c
b/src/resolver.c
index
0485362
..
481369e
100644
(file)
--- a/
src/resolver.c
+++ b/
src/resolver.c
@@
-250,7
+250,7
@@
static int resolvfile_append(const char *interface, const char *domain,
fd = open("/etc/resolv.conf", O_RDWR | O_CREAT,
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (fd < 0)
- return errno;
+ return -errno;
err = ftruncate(fd, 0);