[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TAKE - Return ENAMETOOLONG on too-long pathname components.




This just adds 

	if (dentry->d_name.len >= MAXNAMELEN)
		return ERR_PTR(-ENAMETOOLONG);

to the top of linvfs_lookup, to make sure we don't go down the lookup
path with something we can't handle.

This is the same as ext2_lookup, etc.  Gets us past another LSB test.  :)


Date:  Fri Mar 15 15:35:17 PST 2002
Workarea:  stout.americas.sgi.com:/localhome/eric/2.4.x-xfs/workarea-alwaysclean

The following file(s) were checked into:
  bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs


Modid:  2.4.x-xfs:slinx:114287a
linux/fs/xfs/linux/xfs_iops.c - 1.126
	- Return ENAMETOOLONG if that's the case in linvfs_lookup