Commit 35ed09fe authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

files: print a correct minor numbers for unsupported character devices

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e1d43c4f
...@@ -283,7 +283,7 @@ static int dump_chrdev(struct fd_parms *p, int lfd, const int fdinfo) ...@@ -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);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment