2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

unix: don't restore name for unix stream established sockets

A stream socket may be bound, but is not listen yet.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2012-11-02 14:37:45 +04:00
committed by Pavel Emelyanov
parent 434c107d7c
commit e5a8065713

View File

@@ -546,7 +546,7 @@ static int bind_unix_sk(int sk, struct unix_sk_info *ui)
{
struct sockaddr_un addr;
if ((ui->ue->type == SOCK_STREAM) && (ui->ue->state != TCP_LISTEN))
if ((ui->ue->type == SOCK_STREAM) && (ui->ue->state == TCP_ESTABLISHED))
/*
* FIXME this can be done, but for doing this properly we
* need to bind socket to its name, then rename one to