s4: make pipes with underscore works also
authorMatthieu Patou <mat@matws.net>
Tue, 28 Sep 2010 00:40:38 +0000 (04:40 +0400)
committerStefan Metzmacher <metze@samba.org>
Sun, 9 Jan 2011 14:47:01 +0000 (15:47 +0100)
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

source4/ntvfs/ipc/vfs_ipc.c

index 4f143986fcfd062419d413e42dea6955c6e042b0..972de2723c99e205a2ceca6c2e6884455a442b81 100644 (file)
@@ -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;