[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errno
[samba.git] / source3 / libsmb / libsmb_stat.c
index dc904d2753892a15e52d5a7a83fe1cc4e374cf16..c2806daddb9294d6f8fdc653abbbd8248cdcebdc 100644 (file)
@@ -261,6 +261,7 @@ SMBC_fstat_ctx(SMBCCTX *context,
                        file->srv->cli, path,
                        &targetcli, &targetpath)) {
                d_printf("Could not resolve %s\n", path);
+                errno = ENOENT;
                TALLOC_FREE(frame);
                return -1;
        }