- if(lstat(dirname1, &sb1) != 0) {
- fprintf(stderr, "Can not stat \"%s\": %s\n", dirname1, strerror(errno));
- exit(EXIT_FAILURE);
- }
-
- if(lstat(dirname2, &sb2) != 0) {
- fprintf(stderr, "Can not stat \"%s\": %s\n", dirname2, strerror(errno));
- exit(EXIT_FAILURE);
- }
-
- same_dir = (sb1.st_ino == sb2.st_ino);