blob: 4c106d26f29e75ed4a28ab07bfe922e3cd0fa8b1 [file]
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2026 Christoph Hellwig.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char **argv)
{
if (truncate(argv[1], 0) < 0) {
perror("truncate");
exit(1);
}
fprintf(stderr, "truncate succeeded\n");
}