lib/netns: fix open_ns(): return fd from open()
Looks like a bug introduced by I9b9c8fd6eeaaa7d190b8e2a34ca82088904c7708. Change-Id: I38caf5541ca90638ed10714adfbb08120e5397b9 Fixes: CID#208656
This commit is contained in:
parent
ad6eaa2881
commit
20539f0271
|
@ -96,7 +96,7 @@ int open_ns(int nsfd, const char *pathname, int flags)
|
|||
return -rc;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return fd;
|
||||
}
|
||||
|
||||
int socket_ns(int nsfd, int domain, int type, int protocol)
|
||||
|
|
Loading…
Reference in New Issue