mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
ext2: fix symlink()
This commit is contained in:
@@ -1549,7 +1549,7 @@ static int ext2_symlink(vnode_t *vnode, char *name, vattr_t *attr, char *path, c
|
||||
|
||||
ext2node_t *newnode = (ext2node_t *)newvnode;
|
||||
|
||||
if (linklen <= 60) {
|
||||
if (linklen < 60) {
|
||||
// store it in the inode
|
||||
memcpy(&newnode->inode.directpointer, path, linklen);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user