Avoid directory permission issues with --fake-super.
[rsync/qnx.git] / getfsdev.c
blob3b113bd437ae66dc4b7c5a7a98ebb866e432942e
1 #include "rsync.h"
3 int main(int argc, char *argv[])
5 STRUCT_STAT st;
6 int ret;
8 while (--argc > 0) {
9 #ifdef USE_STAT64_FUNCS
10 ret = stat64(*++argv, &st);
11 #else
12 ret = stat(*++argv, &st);
13 #endif
14 if (ret < 0) {
15 fprintf(stderr, "Unable to stat `%s'\n", *argv);
16 exit(1);
18 printf("%ld/%ld\n", (long)major(st.st_dev),
19 (long)minor(st.st_dev));
22 return 0;