Commit | Line | Data |
---|---|---|
100b62bb WD |
1 | #include "rsync.h" |
2 | ||
3 | int main(int argc, char *argv[]) | |
4 | { | |
5 | STRUCT_STAT st; | |
6 | ||
7 | while (--argc > 0) { | |
8 | if (stat(*++argv, &st) < 0) { | |
9 | fprintf(stderr, "Unable to stat `%s'\n", *argv); | |
10 | exit(1); | |
11 | } | |
12 | printf("%ld/%ld\n", (long)major(st.st_dev), | |
13 | (long)minor(st.st_dev)); | |
14 | } | |
15 | ||
16 | return 0; | |
17 | } |