[CRIU] [PATCH] files: print a correct minor numbers for unsupported character devices

Pavel Emelyanov xemul at parallels.com
Wed Apr 2 04:49:31 PDT 2014


On 04/01/2014 03:46 PM, Andrey Vagin wrote:
> 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);
>  	}
>  	}
> 


applied


More information about the CRIU mailing list