mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-01-20 21:08:06 -05:00
18 lines
292 B
C
18 lines
292 B
C
#include "rsync.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
STRUCT_STAT st;
|
|
|
|
while (--argc > 0) {
|
|
if (stat(*++argv, &st) < 0) {
|
|
fprintf(stderr, "Unable to stat `%s'\n", *argv);
|
|
exit(1);
|
|
}
|
|
printf("%ld/%ld\n", (long)major(st.st_dev),
|
|
(long)minor(st.st_dev));
|
|
}
|
|
|
|
return 0;
|
|
}
|