projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0200d3c
)
popen() requires pclose().
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 11 Nov 2006 14:37:03 +0000
(14:37 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 11 Nov 2006 14:37:03 +0000
(14:37 +0000)
src/graph.c
patch
|
blob
|
history
diff --git
a/src/graph.c
b/src/graph.c
index
b5af224
..
eadb36a
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-364,9
+364,10
@@
void dump_graph(void)
fprintf(file, "}\n");
- fclose(file);
-
- if(filename[0] != '|') {
+ if(filename[0] == '|') {
+ pclose(file);
+ } else {
+ fclose(file);
rename(tmpname, filename);
free(tmpname);
}