Print this page
NEX-16818 Add fksmbcl development tool
NEX-17264 SMB client test tp_smbutil_013 fails after NEX-14666
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
and: (fix ref leaks)
*** 18,28 ****
*
* CDDL HEADER END
*/
/*
! * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
--- 18,28 ----
*
* CDDL HEADER END
*/
/*
! * Copyright 2017 Nexenta Systems, Inc. All rights reserved.
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
*** 126,136 ****
err = SMB_KEYCHAIN_NODRIVER;
goto out;
}
err = 0;
! if (ioctl(fd, cmd, &pk) < 0) {
err = errno;
goto out;
}
if (cmd == SMBIOC_PK_CHK) {
--- 126,136 ----
err = SMB_KEYCHAIN_NODRIVER;
goto out;
}
err = 0;
! if (nsmb_ioctl(fd, cmd, &pk) < 0) {
err = errno;
goto out;
}
if (cmd == SMBIOC_PK_CHK) {
*** 140,150 ****
memcpy(nthash, pk.pk_nthash, SMBIOC_HASH_SZ);
}
out:
if (fd != -1)
! close(fd);
return (err);
}
/*
--- 140,150 ----
memcpy(nthash, pk.pk_nthash, SMBIOC_HASH_SZ);
}
out:
if (fd != -1)
! nsmb_close(fd);
return (err);
}
/*