summaryrefslogtreecommitdiffstats
path: root/contrib/smbfs/lib/smb/ctx.c
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2001-12-26 15:35:10 +0000
committersheldonh <sheldonh@FreeBSD.org>2001-12-26 15:35:10 +0000
commite408bb58567fc1081f8fefb21b5fc64aac4b8548 (patch)
tree6442e18f0af63073386a304c5f0528a272a19980 /contrib/smbfs/lib/smb/ctx.c
parent48de1f540d9fce8ad29e667bb998732ab193d516 (diff)
downloadFreeBSD-src-e408bb58567fc1081f8fefb21b5fc64aac4b8548.zip
FreeBSD-src-e408bb58567fc1081f8fefb21b5fc64aac4b8548.tar.gz
Import smbfs-1.4.3.
Diffstat (limited to 'contrib/smbfs/lib/smb/ctx.c')
-rw-r--r--contrib/smbfs/lib/smb/ctx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/smbfs/lib/smb/ctx.c b/contrib/smbfs/lib/smb/ctx.c
index 6ecb190..a934210 100644
--- a/contrib/smbfs/lib/smb/ctx.c
+++ b/contrib/smbfs/lib/smb/ctx.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ctx.c,v 1.21 2001/04/06 15:47:14 bp Exp $
+ * $Id: ctx.c,v 1.22 2001/12/26 04:10:52 bp Exp $
*/
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -615,7 +615,7 @@ smb_ctx_lookup(struct smb_ctx *ctx, int level, int flags)
}
error = smb_ctx_gethandle(ctx);
if (error) {
- smb_error("can't get handle to requester (no /dev/net/nsmb* device)", 0);
+ smb_error("can't get handle to requester (no /dev/"NSMB_NAME"* device)", 0);
return EINVAL;
}
bzero(&rq, sizeof(rq));
@@ -696,7 +696,7 @@ smb_ctx_readrcsection(struct smb_ctx *ctx, const char *sname, int level)
char *p;
int error;
- if (level > 0) {
+ if (level >= 0) {
rc_getstringptr(smb_rc, sname, "charsets", &p);
if (p) {
error = smb_ctx_setcharset(ctx, p);
OpenPOWER on IntegriCloud