summaryrefslogtreecommitdiff
path: root/core/include/fs.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-24 18:24:14 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-24 18:24:14 -0800
commit6b3041d5e663ebeb162782d44b1d92fe2bd35fdf (patch)
tree53991be6f72171878bbbe2491fbe785dd065f64b /core/include/fs.h
parent8a4b35805fdc6651d288a3e1c2d98aa504cb9c05 (diff)
downloadsyslinux-6b3041d5e663ebeb162782d44b1d92fe2bd35fdf.tar.gz
core: fix double free of pathbuf, constify iget filename, fix iso9660
Fix double free of pathbuf in searchdir(). Constify the pathname passed to ->iget(). Major cleanups of the iso9660 filesystem; it would use insufficiently dimensioned stack variables and do compares in a rather inefficient manner. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include/fs.h')
-rw-r--r--core/include/fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/include/fs.h b/core/include/fs.h
index 1f4ad280..25219d96 100644
--- a/core/include/fs.h
+++ b/core/include/fs.h
@@ -64,7 +64,7 @@ struct fs_ops {
int (*load_config)(void);
struct inode * (*iget_root)(struct fs_info *);
- struct inode * (*iget)(char *, struct inode *);
+ struct inode * (*iget)(const char *, struct inode *);
int (*readlink)(struct inode *, char *);
/* the _dir_ stuff */