diff options
| author | joyce mcintosh <Joyce.McIntosh@Sun.COM> | 2010-02-06 19:03:34 -0800 |
|---|---|---|
| committer | joyce mcintosh <Joyce.McIntosh@Sun.COM> | 2010-02-06 19:03:34 -0800 |
| commit | 96a62ada8aa6cb19b04270da282e7e21ba74b808 (patch) | |
| tree | 6b87c9759b119878c0a540dfc51265580145414c /usr/src/cmd/vscan | |
| parent | 593cc11b0ce1691880b59ee5a8bd6adcdc823490 (diff) | |
| download | illumos-joyent-96a62ada8aa6cb19b04270da282e7e21ba74b808.tar.gz | |
6919822 assert failed in ndr_outer_fixed during stress test
6923019 sharing '/' could lead to system panic
6919931 local users not displayed via MMC
6725406 [CLI] smbadm tool is not localized
6725433 [CLI] vscanadm tool is not localized for supported locales
6921957 DC lookup fails when the IP address is not in DNS SRV responses
6920753 smd preferred domain controller property should accept hostnames as well as IP addresses
6878463 Optionset properties for autohome shares are not shown when viewing with sharemgr show -vp
6914411 smbadm add-member does not give clear error when run as unauthorized user
Diffstat (limited to 'usr/src/cmd/vscan')
| -rw-r--r-- | usr/src/cmd/vscan/vscanadm/vscanadm.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/src/cmd/vscan/vscanadm/vscanadm.c b/usr/src/cmd/vscan/vscanadm/vscanadm.c index 066f915b07..246de24365 100644 --- a/usr/src/cmd/vscan/vscanadm/vscanadm.c +++ b/usr/src/cmd/vscan/vscanadm/vscanadm.c @@ -19,10 +19,9 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" #include <stdio.h> @@ -38,8 +37,13 @@ #include <sys/stat.h> #include <fcntl.h> #include <libintl.h> +#include <locale.h> #include <libvscan.h> +#if !defined(TEXT_DOMAIN) +#define TEXT_DOMAIN "SYS_TEST" +#endif + /* Property Names */ #define VS_ADM_MAXSIZE "max-size" @@ -239,6 +243,9 @@ main(int argc, char **argv) const char *p; int i, err; + (void) setlocale(LC_ALL, ""); + (void) textdomain(TEXT_DOMAIN); + /* executable and subcommand names */ if ((p = strrchr(argv[0], '/')) == NULL) vs_adm_cmd = argv[0]; |
