Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rofs/rofs.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ int rofs_lookup(struct rofs_ctx *ctx, oid_t *dir, const char *name, oid_t *fil,
struct rofs_node *node = NULL;
int parent_id = 0;
int len = 0;
int res;
int res = -ENOENT;

fil->port = ctx->oid.port;
if (name == NULL) {
Expand All @@ -448,7 +448,7 @@ int rofs_lookup(struct rofs_ctx *ctx, oid_t *dir, const char *name, oid_t *fil,
}

while (name[len] != '\0') {
while (name[len] == '/' && name[len] != '\0') {
while (name[len] == '/') {
len++;
}

Expand Down