diff --git a/utils/corrupt_rdb.c b/utils/corrupt_rdb.c index 7ba9caeee..df9c93ed8 100644 --- a/utils/corrupt_rdb.c +++ b/utils/corrupt_rdb.c @@ -21,8 +21,9 @@ int main(int argc, char **argv) { } srand(time(NULL)); + char *filename = argv[1]; cycles = atoi(argv[2]); - fd = open("dump.rdb",O_RDWR); + fd = open(filename,O_RDWR); if (fd == -1) { perror("open"); exit(1);