X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_resize.c;h=e29f2dd2181f8b206b9283cd760c653ffda0b0d7;hp=1778f42448d1a527446170126bf882f8e4bef126;hb=264a94560ae83c638e05b0b93b85fd6285b07dac;hpb=646c75def2845d51746132c8e0f12bc6ff954ff2 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));