diff options
author | Gordon Ross <gwr@nexenta.com> | 2013-06-17 10:34:00 -0400 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2015-06-04 16:46:25 -0400 |
commit | b819cea2f73f98c5662230cc9affc8cc84f77fcf (patch) | |
tree | a3677952ded5706400717b9b79b0aeaa3d93a739 /usr/src/common/smbsrv/smb_string.c | |
parent | 83d2dfe69259e79314662cf95e6d1f9103dcffe2 (diff) | |
download | illumos-gate-b819cea2f73f98c5662230cc9affc8cc84f77fcf.tar.gz |
5917 User-mode SMB server
Authored by: Thomas Keiser <thomas.keiser@nexenta.com>
Authored by: Albert Lee <trisk@nexenta.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Albert Lee <trisk@omniti.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/common/smbsrv/smb_string.c')
-rw-r--r-- | usr/src/common/smbsrv/smb_string.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/common/smbsrv/smb_string.c b/usr/src/common/smbsrv/smb_string.c index 992c660c7a..8400c51ea1 100644 --- a/usr/src/common/smbsrv/smb_string.c +++ b/usr/src/common/smbsrv/smb_string.c @@ -19,12 +19,13 @@ * CDDL HEADER END */ /* - * Copyright 2011 Nexenta Systems, Inc. All rights reserved. * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * + * Copyright 2014 Nexenta Systems, Inc. All rights reserved. */ -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_FAKE_KERNEL) #include <sys/types.h> #include <sys/sunddi.h> #else @@ -442,7 +443,7 @@ smb_unc_init(const char *path, smb_unc_t *unc) bzero(unc, sizeof (smb_unc_t)); -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_FAKE_KERNEL) unc->unc_buf = smb_mem_strdup(path); #else if ((unc->unc_buf = strdup(path)) == NULL) @@ -493,7 +494,7 @@ smb_unc_free(smb_unc_t *unc) if (unc == NULL) return; -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_FAKE_KERNEL) smb_mem_free(unc->unc_buf); #else free(unc->unc_buf); |