From: Ben Pfaff <blp@nicira.com>
Date: Wed, 13 Jul 2011 20:40:43 +0000 (-0700)
Subject: stream-unix: Fix naming of passive Unix streams.
X-Git-Tag: v1.2.0~40
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b7643a4c96961fd2fe91ee027f53c8ef7f6eb348;p=sliver-openvswitch.git

stream-unix: Fix naming of passive Unix streams.

Until now, pstream_get_name() would just return "punix" for passive Unix
streams.  This is uninformative and probably just a mistake, so this
commit switches to using the full name passed in, e.g.
"punix:/path/to/socket".
---

diff --git a/lib/stream-unix.c b/lib/stream-unix.c
index 955414d57..14680ac59 100644
--- a/lib/stream-unix.c
+++ b/lib/stream-unix.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2009, 2010 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -99,7 +99,7 @@ punix_open(const char *name OVS_UNUSED, char *suffix,
         return error;
     }
 
-    return new_fd_pstream("punix", fd, punix_accept,
+    return new_fd_pstream(name, fd, punix_accept,
                           xstrdup(suffix), pstreamp);
 }