s4: make pipes with underscore works also
authorMatthieu Patou <mat@matws.net>
Tue, 28 Sep 2010 00:40:38 +0000 (04:40 +0400)
committerMatthieu Patou <mat@matws.net>
Fri, 8 Oct 2010 20:03:12 +0000 (00:03 +0400)
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;