Re: [PATCH 1/2] Use ENAMETOOLONG if the the socket path is longer than UNIX_PATH_MAX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 02, 2011 at 03:35:05PM -0600, Eric Blake wrote:
> On 11/02/2011 03:30 PM, Guido Günther wrote:
> >---
> >  src/rpc/virnetsocket.c |    3 ++-
> >  1 files changed, 2 insertions(+), 1 deletions(-)
> >
> >diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c
> >index ab88e19..d832c53 100644
> >--- a/src/rpc/virnetsocket.c
> >+++ b/src/rpc/virnetsocket.c
> >@@ -327,7 +327,8 @@ int virNetSocketNewListenUNIX(const char *path,
> >
> >      addr.data.un.sun_family = AF_UNIX;
> >      if (virStrcpyStatic(addr.data.un.sun_path, path) == NULL) {
> >-        virReportSystemError(ENOMEM, _("Path %s too long for unix socket"), path);
> >+        virReportSystemError(ENAMETOOLONG,
> >+                             _("Path %s too long for unix socket"), path);
> 
> ACK.  [In fact, I had the exact same patch in my sandbox, but you
> beat me in posting it!]
Pushed. Thanks,
 -- Guido

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]