xfs
[Top] [All Lists]

TAKE - Return ENAMETOOLONG on too-long pathname components.

Subject: TAKE - Return ENAMETOOLONG on too-long pathname components.
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Fri, 15 Mar 2002 17:37:52 -0600
Sender: owner-linux-xfs@xxxxxxxxxxx
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



<Prev in Thread] Current Thread [Next in Thread>
  • TAKE - Return ENAMETOOLONG on too-long pathname components., Eric Sandeen <=