diff options
| author | nw141292 <none@none> | 2008-02-04 15:57:37 -0800 |
|---|---|---|
| committer | nw141292 <none@none> | 2008-02-04 15:57:37 -0800 |
| commit | 0dcc71495bad040a0c83830efc85acf8d897350d (patch) | |
| tree | cd85551cfd283f7a9e9b29d0d2a928acd83f588d /usr/src/lib/libidmap | |
| parent | cbfb650a37bf2b1cd913645ee5ab0d1a13ef6246 (diff) | |
| download | illumos-joyent-0dcc71495bad040a0c83830efc85acf8d897350d.tar.gz | |
6646649 idmapd auto-discovery should detect network config changes
6648394 idmapd should validate all UTF-8 string inputs with u8_validate()
6649667 idmapd needs a restart after boot on multi-homed domain-mode systems
6656141 some idmapd_priv.h macros need macro hygiene
6657342 improve timeout handling
Diffstat (limited to 'usr/src/lib/libidmap')
| -rw-r--r-- | usr/src/lib/libidmap/common/idmap_api.c | 5 | ||||
| -rw-r--r-- | usr/src/lib/libidmap/common/idmap_priv.h | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/usr/src/lib/libidmap/common/idmap_api.c b/usr/src/lib/libidmap/common/idmap_api.c index 1eb5095385..5dfeb56116 100644 --- a/usr/src/lib/libidmap/common/idmap_api.c +++ b/usr/src/lib/libidmap/common/idmap_api.c @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -1701,6 +1701,9 @@ static stat_table_t stattable[] = { {IDMAP_ERR_U2W_NAMERULE_CONFLICT, gettext("Duplicate rule or conflicts with an existing " "Unix to Windows name-based rule"), EINVAL}, + {IDMAP_ERR_BAD_UTF8, + gettext("Invalid or illegal UTF-8 sequence found in " + "a given Windows entity name or domain name"), EINVAL}, {-1, NULL, 0} }; #undef gettext diff --git a/usr/src/lib/libidmap/common/idmap_priv.h b/usr/src/lib/libidmap/common/idmap_priv.h index 813db74da6..8e92c21763 100644 --- a/usr/src/lib/libidmap/common/idmap_priv.h +++ b/usr/src/lib/libidmap/common/idmap_priv.h @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -41,9 +41,9 @@ extern "C" { #define IDMAP_MAX_NAME_LEN 512 -#define IDMAP_ERROR(rc) rc != IDMAP_SUCCESS && rc != IDMAP_NEXT -#define IDMAP_FATAL_ERROR(rc) rc == IDMAP_ERR_MEMORY ||\ - rc == IDMAP_ERR_DB +#define IDMAP_ERROR(rc) (rc != IDMAP_SUCCESS && rc != IDMAP_NEXT) +#define IDMAP_FATAL_ERROR(rc) (rc == IDMAP_ERR_MEMORY ||\ + rc == IDMAP_ERR_DB) /* Direction in which mapping is valid */ #define IDMAP_DIRECTION_UNDEF -1 /* not defined */ |
