search for: name_buf

Displaying 12 results from an estimated 12 matches for "name_buf".

2004 Apr 01
1
[patch] net/rsync: problems in client name lookup code
...ts allow" specifies a hostname >Fix: --- proto.h.orig Sat Dec 6 16:07:27 2003 +++ proto.h Thu Apr 1 10:54:19 2004 @@ -42,7 +42,6 @@ struct sockaddr_storage *ss, socklen_t *ss_len); int lookup_name(int fd, const struct sockaddr_storage *ss, - socklen_t ss_len, char *name_buf, size_t name_buf_len, char *port_buf, size_t port_buf_len); int compare_addrinfo_sockaddr(const struct addrinfo *ai, --- clientname.c.orig Fri Jan 10 21:05:56 2003 +++ clientname.c Thu Apr 1 10:57:05 2004 @@ -101,58 +101,58 @@ char *client_name(int fd) static char name_buf[100]; static cha...
2002 Jan 11
1
rsync 2.5.1 server - strange logs
I've just upgraded my rsync server to 2.5.1 (before, I was using 2.4.6), without changing anything in /etc/rsyncd.conf, and now, I have this logs each time a client connect to server: 2002/01/07 18:33:03 [10432] rsync: reverse name lookup mismatch on fd3 - spoofed address? 2002/01/07 18:33:03 [10432] rsync on admin/sbin/padmin_update.sh from UNKNOWN (172.16.65.14) 2002/01/07 18:33:03 [10432]
2008 Jun 07
2
Unraveling a protoent struct
I''m spacing - how do I unravel a protent struct pointer? require ''win32/api'' include Win32 getprotobyname = API.new(''getprotobyname'', ''P'', ''P'', ''ws2_32'') ptr = getprotobyname.call(''tcp'') puts "Name: " + # ??? puts "Aliases: " + # ??? puts "Number: "
2002 Apr 02
3
getaddrinfo() problem with AIX 4.3.3 and rsync 2.5.2?
...ff -u clientname.c.orig clientname.c --- clientname.c.orig Fri Jan 25 17:59:37 2002 +++ clientname.c Mon Apr 1 13:32:10 2002 @@ -240,7 +240,7 @@ hints.ai_family = ss_family; hints.ai_flags = AI_CANONNAME; hints.ai_socktype = SOCK_STREAM; - error = getaddrinfo(name_buf, port_buf, &hints, &res0); + error = getaddrinfo(name_buf, NULL, &hints, &res0); if (error) { rprintf(FERROR, RSYNC_NAME ": forward name lookup for %s failed: %s\n", -- John L. Allen, Dept 0631, EMS...
2007 Mar 03
5
[PATCH] Compile issue with tools/libfsimage/iso9660
...fo { ((struct iso_inode_info *)(FSYS_BUF+sizeof(struct iso_sb_info))) #define PRIMDESC ((struct iso_primary_descriptor *)(FSYS_BUF + 2048)) #define DIRREC ((struct iso_directory_record *)(FSYS_BUF + 4096)) -#define RRCONT_BUF ((unsigned char *)(FSYS_BUF + 6144)) -#define NAME_BUF ((unsigned char *)(FSYS_BUF + 8192)) +#define RRCONT_BUF ((char *)(FSYS_BUF + 6144)) +#define NAME_BUF ((char *)(FSYS_BUF + 8192)) #define log2 grub_log2 @@ -207,7 +207,7 @@ iso9660_dir (fsi_file_t *ffi, char *dirn rr_len = (idr->length.l - idr->name_len.l...
2008 Oct 24
0
Name lookup failures and CIDR regression under cygwin ( patch attached )
...ygwin and I'm now getting lookup failures in the log. 2008/10/24 00:13:23 [1984] name lookup failed for X.X.X.X: Unknown server error Looking at the code it seems the call will never succeed? /* reverse lookup */ name_err = getnameinfo((struct sockaddr *) ss, ss_len, name_buf, name_buf_size, port_buf, port_buf_size, NI_NAMEREQD | NI_NUMERICSERV); if (name_err != 0) { strlcpy(name_buf, default_name, name_buf_size); rprintf(FLOG, "name lookup failed for %s: %s\n", client_addr(fd), gai_strerror...
2003 May 22
0
[PATCH 2.5.69 3/3] Bandaids for gen_init_cpio and initramfs
...ot;junk in compressed archive"); + error("junk in compressed archive\n"); } } @@ -372,7 +369,6 @@ #define STATIC static static void flush_window(void); -static void error(char *m); static void gzip_mark(void **); static void gzip_release(void **); @@ -415,7 +411,7 @@ name_buf = malloc(N_ALIGN(PATH_MAX)); window = malloc(WSIZE); if (!window || !header_buf || !symlink_buf || !name_buf) - error("can't allocate buffers"); + error("can't allocate buffers\n"); state = Start; this_header = 0; while (len) { @@ -441,9 +437,9 @@ crc = (u...
1998 May 14
1
samba main cvs branch seems to be broken on 64-bit boxes.....
hi there :) the code in util.c seems to have some bugs w/regard to compilation on 64-bit machines. in this case, the hardware is an Alpha running redhat 4.2 with pam turned off in the makefile. i get a whole series of errors, all of which say "passing arg 'n' of 'function' from incompatible pointer type. in util.c, checked out of the main branch the day before yesterday,
2008 Oct 24
5
DO NOT REPLY [Bug 5851] New: Name lookup failures and CIDR regression
...ygwin and I'm now getting lookup failures in the log. 2008/10/24 00:13:23 [1984] name lookup failed for X.X.X.X: Unknown server error Looking at the code it seems the call will never succeed? /* reverse lookup */ name_err = getnameinfo((struct sockaddr *) ss, ss_len, name_buf, name_buf_size, port_buf, port_buf_size, NI_NAMEREQD | NI_NUMERICSERV); if (name_err != 0) { strlcpy(name_buf, default_name, name_buf_size); rprintf(FLOG, "name lookup failed for %s: %s\n", client_addr(fd), gai_strerror...
2002 Jan 07
1
rsync-2.5.1 / socket.c - unititialized variable breaks build.
...unsigned int length = sizeof(ss); static char addr_buf[100]; static int initialised; @@ -595,7 +597,7 @@ char *client_name(int fd) { struct sockaddr_storage ss; - int length = sizeof(ss); + unsigned int length = sizeof(ss); static char name_buf[100]; static char port_buf[100]; char *def = "UNKNOWN";
2002 Apr 23
5
Dynamic address problem
Hi All, We have clients which dynamic IPs which we have setup with <host>.dyndns.org addresses. We have added these to the rsync.conf 'hosts allow=" but they are being denied access.. Is there anyway around this? Matt
2017 Apr 05
0
Transfer hangs, both sides waiting on receive
...gc=<optimized out>, f_out=3, f_in=3) at main.c:840 #8 start_server (f_in=3, f_out=3, argc=2, argv=0x7f9a7302f240) at main.c:1107 #9 0x00007f9a71e5a34e in rsync_module (f_in=3, f_out=3, i=0, addr=0x7f9a72098518 <numeric_ids> "\377\377\377\377", host=0x7f9a72098c80 <name_buf> "host-a.example.com") at clientserver.c:1009 #10 0x00007f9a71e5b260 in start_daemon (f_in=3, f_out=3) at clientserver.c:1100 #11 0x00007f9a71e4f5d1 in start_accept_loop (port=4, fn=0x7ffe7c1aa160, fn at entry=0x7f9a71e5b120 <start_daemon>) at socket.c:618 #12 0x00007f9a71e5bb...