Whamcloud - gitweb
corrected an error made in setepall in test-framework.sh, which affects
[fs/lustre-release.git] / lustre / tests / mrename.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <errno.h>
4 #include <string.h>
5
6 int main(int argc, char *argv[])
7 {
8         int rc;
9
10         if (argc != 3) {
11                 fprintf(stderr, "usage: %s from to\n", argv[0]);
12                 exit(1);
13         }
14
15         rc = rename(argv[1], argv[2]);
16         printf("rename returned %d: %s\n", rc, strerror(errno));
17
18         return rc;
19 }