Change in osmo-ggsn[master]: lib/netns: fix open_ns(): return fd from open()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Mar 3 09:23:17 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/17324 )

Change subject: lib/netns: fix open_ns(): return fd from open()
......................................................................

lib/netns: fix open_ns(): return fd from open()

Looks like a bug introduced by I9b9c8fd6eeaaa7d190b8e2a34ca82088904c7708.

Change-Id: I38caf5541ca90638ed10714adfbb08120e5397b9
Fixes: CID#208656
---
M lib/netns.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/lib/netns.c b/lib/netns.c
index bd2076b..58ae036 100644
--- a/lib/netns.c
+++ b/lib/netns.c
@@ -96,7 +96,7 @@
 		return -rc;
 	}
 
-	return 0;
+	return fd;
 }
 
 int socket_ns(int nsfd, int domain, int type, int protocol)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/17324
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I38caf5541ca90638ed10714adfbb08120e5397b9
Gerrit-Change-Number: 17324
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200303/1fd4c590/attachment.htm>


More information about the gerrit-log mailing list