X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Frrd_resize.c;h=e29f2dd2181f8b206b9283cd760c653ffda0b0d7;hb=264a94560ae83c638e05b0b93b85fd6285b07dac;hp=1778f42448d1a527446170126bf882f8e4bef126;hpb=2a6a270edfda89b04722b42b57992907f871c671;p=rrdtool.git diff --git a/src/rrd_resize.c b/src/rrd_resize.c index 1778f42..e29f2dd 100644 --- a/src/rrd_resize.c +++ b/src/rrd_resize.c @@ -82,7 +82,7 @@ int rrd_resize( return (-1); } - rrd_out_file = rrd_open(outfilename, &rrdnew, RRD_CREAT); + rrd_out_file = rrd_open(outfilename, &rrdnew, RRD_READWRITE|RRD_CREAT); if (rrd_out_file == NULL) { rrd_set_error("Can't create '%s': %s", outfilename, rrd_strerror(errno));