Module Name: src
Committed By: njoly
Date: Fri Jun 26 22:41:26 UTC 2009
Modified Files:
src/dist/smbfs/lib/smb: ctx.c
Log Message:
Do set error for SMBIOC_LOOKUP ioctl failure in *SMBSERVER fallback.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/dist/smbfs/lib/smb/ctx.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/smbfs/lib/smb/ctx.c
diff -u src/dist/smbfs/lib/smb/ctx.c:1.12 src/dist/smbfs/lib/smb/ctx.c:1.13
--- src/dist/smbfs/lib/smb/ctx.c:1.12 Tue Oct 16 15:37:32 2007
+++ src/dist/smbfs/lib/smb/ctx.c Fri Jun 26 22:41:26 2009
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: ctx.c,v 1.12 2007/10/16 15:37:32 he Exp $");
+__RCSID("$NetBSD: ctx.c,v 1.13 2009/06/26 22:41:26 njoly Exp $");
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -691,6 +691,7 @@
if (ioctl(ctx->ct_fd, SMBIOC_LOOKUP, &rq) != -1)
goto success;
+ error = errno;
fail:
if (flags & SMBLK_CREATE)