| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: compiling xfsdump: `SYS_getdents64' undeclared, Stephan Austermühle |
|---|---|
| Next by Date: | redhat7.2 + sgi-xfs 1.0.2a .. problem..., 주 경락 |
| Previous by Thread: | xfs_check 112 Segmentation fault, Joe Bacom |
| Next by Thread: | redhat7.2 + sgi-xfs 1.0.2a .. problem..., 주 경락 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |