Skip to contentSkip to conversation

Correct symlink name too long error code

PATCH New Adrian Hunter 1 participant 1 message Aug 12, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Correct symlink name too long error code

---
fs/jffs2/dir.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
fs/jffs2/dir.c +0 -0
index cd219ef..b1aaae8 100644
@@ -311,7 +311,7 @@ static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char
	/* FIXME: If you care. We'd need to use frags for the target
	   if it grows much more than this */
	if (targetlen > 254)

- return -EINVAL;
+ return -ENAMETOOLONG;

	ri = jffs2_alloc_raw_inode();
Signature · 1 line
1.5.4.3