diff options
author | Luke Leighton <lkcl@samba.org> | 2000-03-06 03:25:59 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-03-06 03:25:59 +0000 |
commit | ebdc99e80b1c10283de802f4b2d812167a988b6f (patch) | |
tree | 952e1baa1197ee3bd3c65af6c2be5caebe591063 | |
parent | 44cbbd2e9a890e233b0b8ff28afa785a6846fa35 (diff) | |
download | samba-ebdc99e80b1c10283de802f4b2d812167a988b6f.tar.gz |
first connectathon 2000 tests produces results!
cascade shows that pipe names are case-insensitive. they send all uppercase.
-rw-r--r-- | source/lib/msrpc-client.c | 5 | ||||
-rw-r--r-- | source/msrpc/msrpcd.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/source/lib/msrpc-client.c b/source/lib/msrpc-client.c index 72e21339950..047ab5913c1 100644 --- a/source/lib/msrpc-client.c +++ b/source/lib/msrpc-client.c @@ -154,7 +154,10 @@ open the msrpcent sockets BOOL ncalrpc_l_connect(struct msrpc_local *msrpc, const char *pipe_name) { fstring path; - slprintf(path, sizeof(path) - 1, "%s/.msrpc/%s", LOCKDIR, pipe_name); + fstring pname; + fstrcpy(pname, pipe_name); + strlower(pname); + slprintf(path, sizeof(path) - 1, "%s/.msrpc/%s", LOCKDIR, pname); fstrcpy(msrpc->pipe_name, pipe_name); diff --git a/source/msrpc/msrpcd.c b/source/msrpc/msrpcd.c index 0e32e345acf..13f98129149 100644 --- a/source/msrpc/msrpcd.c +++ b/source/msrpc/msrpcd.c @@ -362,6 +362,8 @@ static void usage(char *pname) pipes_struct p; fstring service_name; + charset_initialise(); + if (fn == NULL) { fprintf(stderr,"no services table!\n"); @@ -373,11 +375,10 @@ static void usage(char *pname) exit_server("fn->main() initialisation failed!"); } + strlower(pipe_name); pstrcpy(remote_machine, pipe_name); split_at_last_component(argv[0], NULL, '/', service_name); - charset_initialise(); - /* make absolutely sure we run as root - to handle cases where people are crazy enough to have it setuid */ #ifdef HAVE_SETRESUID |