[CRIU] [PATCH] files: print a correct minor numbers for unsupported character devices
Andrey Vagin
avagin at openvz.org
Tue Apr 1 04:46:11 PDT 2014
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
files.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/files.c b/files.c
index 3cf5e47..ae5def7 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);
}
}
--
1.8.5.3
More information about the CRIU
mailing list