summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-09-28 04:40:38 +0400
committerStefan Metzmacher <metze@samba.org>2011-01-09 15:47:01 +0100
commit504be0ac548bf422e303aca645aeaad12b6de6df (patch)
treecec56632bc3f1a72d5299b1966fef60ec98b1537 /source4/ntvfs
parentb57721faafad749f01df22bf555841aac158fa71 (diff)
downloadsamba-504be0ac548bf422e303aca645aeaad12b6de6df.tar.gz
samba-504be0ac548bf422e303aca645aeaad12b6de6df.tar.bz2
samba-504be0ac548bf422e303aca645aeaad12b6de6df.zip
s4: make pipes with underscore works also
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Jan 9 15:47:01 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/ipc/vfs_ipc.c4
1 files changed, 3 insertions, 1 deletions
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;