From: Matthieu Patou Date: Tue, 28 Sep 2010 00:40:38 +0000 (+0400) Subject: s4: make pipes with underscore works also X-Git-Url: http://git.samba.org/?p=mat%2Fsamba.git;a=commitdiff_plain;h=9d1c28375bb60509fd2767c3a85db43b1d9eeec7 s4: make pipes with underscore works also --- diff --git a/source4/ntvfs/ipc/vfs_ipc.c b/source4/ntvfs/ipc/vfs_ipc.c index 4f143986fc..972de2723c 100644 --- a/source4/ntvfs/ipc/vfs_ipc.c +++ b/source4/ntvfs/ipc/vfs_ipc.c @@ -228,7 +228,9 @@ static void ipc_open_done(struct tevent_req *subreq); static NTSTATUS validate_pipename(const char *name) { while (*name) { - if (!isalnum(*name)) return NT_STATUS_INVALID_PARAMETER; + if (!isalnum(*name) && *name != '_') { + return NT_STATUS_INVALID_PARAMETER; + } name++; } return NT_STATUS_OK;