summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-06-10 08:24:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:55 -0500
commit0f8d452ca020ece761872721e19e62ae0fc21582 (patch)
tree4b4ccb6ccc9383f30c8114820639d1a5d14e6376 /source4/ntvfs
parentaa7b6b3ea57b0e36b7b43ed2f312ee724e243541 (diff)
downloadsamba-0f8d452ca020ece761872721e19e62ae0fc21582.tar.gz
samba-0f8d452ca020ece761872721e19e62ae0fc21582.tar.bz2
samba-0f8d452ca020ece761872721e19e62ae0fc21582.zip
r7458: don't look at components[-1] :-)
we now survive the RAW-UNLINK test without crashing metze (This used to be commit c2149963911bf95892e732b744f244fd76ff88c8)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/pvfs_resolve.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_resolve.c b/source4/ntvfs/posix/pvfs_resolve.c
index fc899c5fbc..355e82c301 100644
--- a/source4/ntvfs/posix/pvfs_resolve.c
+++ b/source4/ntvfs/posix/pvfs_resolve.c
@@ -392,12 +392,14 @@ static NTSTATUS pvfs_reduce_name(TALLOC_CTX *mem_ctx, const char **fname, uint_t
memmove(&components[i], &components[i+1],
sizeof(char *)*(num_components-i));
i--;
+ continue;
}
if (strcmp(components[i], "..") == 0) {
if (i < 1) return NT_STATUS_OBJECT_PATH_SYNTAX_BAD;
memmove(&components[i-1], &components[i+1],
sizeof(char *)*(num_components-(i+1)));
i -= 2;
+ continue;
}
}