int i = 0, j = 0;
if (depth >= VFS_SYMLINK_DEPTH) {
- return ENAMETOOLONG;
+ return ELOOP;
}
if (path[0] == VFS_PATH_DELIM || !start) {
i++;
}
+ assert(start);
+
struct v_dnode* dnode;
struct v_inode* current_inode;
struct v_dnode* current_level = start;
struct hstr name = HSTR(fname_buffer, 0);
char current = path[i++], lookahead;
- while (current && current_level) {
+ while (current) {
lookahead = path[i++];
if (current != VFS_PATH_DELIM) {
if (j >= VFS_NAME_MAXLEN - 1) {