diff --git a/files.c b/files.c index 3cf5e470c..ae5def7dd 100644 --- a/files.c +++ b/files.c @@ -283,7 +283,7 @@ static int dump_chrdev(struct fd_parms *p, int lfd, const int fdinfo) default: { char more[32]; - sprintf(more, "%d:%d", maj, minor(p->stat.st_dev)); + sprintf(more, "%d:%d", maj, minor(p->stat.st_rdev)); return dump_unsupp_fd(p, lfd, fdinfo, "chr", more); } }