mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-29 21:12:29 +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:
parent
e1d43c4f8e
commit
35ed09fe53
1 changed files with 1 additions and 1 deletions
2
files.c
2
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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue