diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-15 05:40:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:54 -0500 |
commit | 9d9b42b0591a82ef23bfa367941f711bc454cc26 (patch) | |
tree | a6601cad745f6ca3a45b6e4dea714a6d2b10489e | |
parent | 1edc2f95e345d7b2691fc636bd4d8e0f3e03bff2 (diff) | |
download | samba-9d9b42b0591a82ef23bfa367941f711bc454cc26.tar.gz samba-9d9b42b0591a82ef23bfa367941f711bc454cc26.tar.bz2 samba-9d9b42b0591a82ef23bfa367941f711bc454cc26.zip |
r2984: fixed the error code for a non-terminal component of a path name not existing
(This used to be commit c6a922dbd844c69bbba83c259169655d17e9f87f)
-rw-r--r-- | source4/ntvfs/posix/pvfs_resolve.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_resolve.c b/source4/ntvfs/posix/pvfs_resolve.c index 205e1e283f..97068c3d03 100644 --- a/source4/ntvfs/posix/pvfs_resolve.c +++ b/source4/ntvfs/posix/pvfs_resolve.c @@ -140,7 +140,7 @@ static NTSTATUS pvfs_case_search(struct pvfs_state *pvfs, struct pvfs_filename * if (!de) { if (i < num_components-1) { closedir(dir); - return NT_STATUS_OBJECT_NAME_NOT_FOUND; + return NT_STATUS_OBJECT_PATH_NOT_FOUND; } } else { components[i] = talloc_strdup(name, de->d_name); @@ -271,7 +271,6 @@ static NTSTATUS pvfs_unix_path(struct pvfs_state *pvfs, const char *cifs_name, PVFS_RESOLVE_NO_WILDCARD = wildcards are considered illegal characters PVFS_RESOLVE_STREAMS = stream names are allowed - TODO: add reserved name checking (for things like LPT1) TODO: ../ collapsing, and outside share checking */ NTSTATUS pvfs_resolve_name(struct pvfs_state *pvfs, TALLOC_CTX *mem_ctx, |