… | … | ||
---|---|---|---|
251 | 251 | ||
252 | asprintf (&fname, "%s/pubkey/%s", confbase, node->nodename); | 252 | asprintf (&fname, "%s/pubkey/%s", confbase, node->nodename); |
253 | 253 | ||
254 | f = fopen (fname, "a"); | 254 | f = fopen (fname, "a"); |
255 | 255 | ||
256 | if (!f) | 256 | /* some libcs are buggy and require an extra seek to the end */ |
257 | if (!f || fseek (f, 0, SEEK_END)) | ||
257 | { | 258 | { |
258 | perror (fname); | 259 | perror (fname); |
259 | exit (EXIT_FAILURE); | 260 | exit (EXIT_FAILURE); |
260 | } | 261 | } |
261 | 262 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |