mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-03 15:55:53 +00:00
files: print a correct minor numbers for unsupported character devices
Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
e1d43c4f8e
commit
35ed09fe53
2
files.c
2
files.c
@@ -283,7 +283,7 @@ static int dump_chrdev(struct fd_parms *p, int lfd, const int fdinfo)
|
|||||||
default: {
|
default: {
|
||||||
char more[32];
|
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);
|
return dump_unsupp_fd(p, lfd, fdinfo, "chr", more);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user