git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
584ac76
)
s4: make pipes with underscore works also
author
Matthieu Patou
<mat@matws.net>
Tue, 28 Sep 2010 00:40:38 +0000
(
04:40
+0400)
committer
Matthieu Patou
<mat@matws.net>
Fri, 8 Oct 2010 20:03:12 +0000
(
00:03
+0400)
source4/ntvfs/ipc/vfs_ipc.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/ipc/vfs_ipc.c
b/source4/ntvfs/ipc/vfs_ipc.c
index 4f143986fcfd062419d413e42dea6955c6e042b0..972de2723c99e205a2ceca6c2e6884455a442b81 100644
(file)
--- 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;