diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-26 23:04:19 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-26 23:04:19 +0000 |
commit | 29c480085e786905bfd92ea3cd93658f94e96e47 (patch) | |
tree | 5512dd2014fec3bd7506341bb5b03b7f04917dea /source/lib/util.c | |
parent | cda25778816f6d74f02c7e7c85e455b40e80bad2 (diff) | |
download | samba-29c480085e786905bfd92ea3cd93658f94e96e47.tar.gz samba-29c480085e786905bfd92ea3cd93658f94e96e47.tar.xz samba-29c480085e786905bfd92ea3cd93658f94e96e47.zip |
whoa. _major_ restructure of rpcclient. fixed some buuugs, created a few.
found out that getopt() _must_ have optind set to 0 before reuse.
still haven't decided what to do with the net* api yet...
Diffstat (limited to 'source/lib/util.c')
-rw-r--r-- | source/lib/util.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index cd6368ee77f..26f0482162a 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -3228,24 +3228,3 @@ BOOL become_user_permanently(uid_t uid, gid_t gid) return(True); } -BOOL resolve_srv_name(const char* srv_name, fstring dest_host, - struct in_addr *ip) -{ - DEBUG(10,("resolve_srv_name: %s\n", srv_name)); - - if (srv_name == NULL || strequal("\\\\.", srv_name)) - { - fstrcpy(dest_host, global_myname); - ip = interpret_addr2("127.0.0.1"); - return True; - } - - if (!strnequal("\\\\", srv_name, 2)) - { - return False; - } - - fstrcpy(dest_host, &srv_name[2]); - return resolve_name(dest_host, ip, 0x20); -} - |