generic/60[01]: fix test failure when setting new grace limit
[xfstests-dev.git] / src / rename.c
1 /*
2  * A trivial shell command wrapping rename(2).
3  */
4
5 #include <stdio.h>
6 #include <stdlib.h>
7
8 int main(int argc, char **argv)
9 {
10         if (argc != 3) {
11                 fprintf(stderr, "usage: rename <from> <to>\n");
12                 exit(EXIT_FAILURE);
13         }
14
15         if (rename(argv[1], argv[2]) == -1) {
16                 perror("rename");
17                 exit(EXIT_FAILURE);
18         }
19
20         exit(0);
21 }