Displaying 6 results from an estimated 6 matches for "default_name".
Did you mean:
default_frame
2009 Sep 28
7
Basic Rails problem with has_many nil values and permalinks
Hi,
I have a model property with has_many. I find the property and then I
need to find the name of the building or the neighborhood that the
property belongs to. The property is not always assigned a building or
neighborhood.
This becomes a problem when createing permalinks with permalink_fu.
has_permalink [:neighborhood_name, :building_name, :address]
The neighborhood name and building name
2004 Apr 01
1
[patch] net/rsync: problems in client name lookup code
...ort_buf[100];
static int initialised;
- struct sockaddr_storage ss, *ssp;
- struct sockaddr_in sin;
-#ifdef INET6
- struct sockaddr_in6 sin6;
-#endif
- socklen_t ss_len;
+ struct sockaddr_storage ss;
- if (initialised) return name_buf;
+ if (initialised)
+ return name_buf;
strcpy(name_buf, default_name);
initialised = 1;
+ memset(&ss, 0, sizeof(ss));
+
if (am_server) {
/* daemon over --rsh mode */
char *addr = client_addr(fd);
-#ifdef INET6
- int dots = 0;
- char *p;
- for (p = addr; *p && (dots <= 3); p++) {
- if (*p == '.')
- dots++;
- }
- if (...
2008 Oct 24
0
Name lookup failures and CIDR regression under cygwin ( patch attached )
...e 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(name_err));
return name_err;
}
Then in the supplied getnameinfo:-
/* We don't support those. */
if ((node && !(flags & NI_NUMERICHOST))...
2013 Jun 07
1
v2.2.2 (e5bd0a7c6a1e) Core Dump
...backend = 0x21d22d0
aclobj = 0x221a100
dir = <optimized out>
vname = <optimized out>
#3 0x00007fecd7cf3c8e in acl_backend_get_default_object (backend=backend at entry=0x21d22d0) at acl-backend.c:177
user = 0x21caeb0
ns = 0x21ca6d0
default_name = <optimized out>
#4 0x00007fecd7cf3cce in acl_backend_get_default_rights (backend=0x21d22d0, mask_r=mask_r at entry=0x7fffc5835d78) at acl-backend.c:184
aclobj = <optimized out>
#5 0x00007fecd7cf9c51 in acl_mailbox_try_list_fast (ctx=0x221b4b0) at acl-mailbox-list.c:107...
2008 Oct 24
5
DO NOT REPLY [Bug 5851] New: Name lookup failures and CIDR regression
...e 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(name_err));
return name_err;
}
Then in the supplied getnameinfo:-
/* We don't support those. */
if ((node && !(flags & NI_NUMERICHOST))...
2018 Oct 01
7
[PATCH v2 API PROPOSAL 0/5] inspection Add network interfaces to inspection data.
The proposed API is the same as v1, but this includes an
implementation (for /etc/sysconfig/network-scripts/ifcfg-*) and
modifications to virt-inspector. This compiles and works.
If you look in patch 5 you can see proposed output as virt-inspector
XML for a guest (although this guest has not been booted, so a real
guest would hopefully have a hwaddr="MAC" attribute too).
Rich.