From 504be0ac548bf422e303aca645aeaad12b6de6df Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 28 Sep 2010 04:40:38 +0400 Subject: s4: make pipes with underscore works also Signed-off-by: Stefan Metzmacher Autobuild-User: Stefan Metzmacher Autobuild-Date: Sun Jan 9 15:47:01 CET 2011 on sn-devel-104 --- source4/ntvfs/ipc/vfs_ipc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') 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; -- cgit