diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-06-05 12:06:47 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-06-05 12:06:47 +0100 |
commit | f1c2dde13bf1ca59a466cfed2f2d2076c06b235f (patch) | |
tree | 3c8ef58913108a1b5da66dc0431127cc655851a7 /content | |
parent | 80bee65a71a7e85cb800e5d1d1f58525c855cb09 (diff) | |
download | netsurf-f1c2dde13bf1ca59a466cfed2f2d2076c06b235f.tar.gz netsurf-f1c2dde13bf1ca59a466cfed2f2d2076c06b235f.tar.bz2 |
extend file table with mkdir all and make fs backing store use it.
enable fs backing store for RISC OS.
Diffstat (limited to 'content')
-rw-r--r-- | content/fs_backing_store.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/content/fs_backing_store.c b/content/fs_backing_store.c index 7ad649248..d29fcaac7 100644 --- a/content/fs_backing_store.c +++ b/content/fs_backing_store.c @@ -627,7 +627,7 @@ store_open(struct store_state *state, /** @todo mkdir only on write flag */ /* ensure path to file is usable */ - ret = filepath_mkdir_all(fname); + ret = netsurf_mkdir_all(fname); if (ret != NSERROR_OK) { LOG(("file path \"%s\" could not be created", fname)); free(fname); @@ -835,7 +835,9 @@ write_control(struct store_state *state) return ret; } - ret = filepath_mkdir_all(fname); + LOG(("writing control file \"%s\"", fname)); + + ret = netsurf_mkdir_all(fname); if (ret != NSERROR_OK) { free(fname); return ret; @@ -881,6 +883,8 @@ read_control(struct store_state *state) return ret; } + LOG(("opening control file \"%s\"", fname)); + fcontrol = fopen(fname, "rb"); free(fname); |