1.1 --- a/libfsserver/lib/files/host_file_opener.cc Sun Jul 25 00:54:12 2021 +0200
1.2 +++ b/libfsserver/lib/files/host_file_opener.cc Sun Jul 25 17:14:53 2021 +0200
1.3 @@ -24,20 +24,21 @@
1.4
1.5 /* Return a file identifier for the given 'path'. */
1.6
1.7 -fileid_t HostFileOpener::get_fileid(const char *path, flags_t flags)
1.8 +long HostFileOpener::get_fileid(const char *path, flags_t flags, fileid_t *fileid)
1.9 {
1.10 (void) flags;
1.11
1.12 - /* Test for a valid file or an attempt to create a file. */
1.13 + /* Test for a valid file. */
1.14
1.15 FILE *fp = fopen(path, "r");
1.16
1.17 if (fp == NULL)
1.18 - return FILEID_INVALID;
1.19 + return -L4_ENOENT;
1.20
1.21 fclose(fp);
1.22
1.23 - return _get_fileid(path, true);
1.24 + *fileid = _get_fileid(path, true);
1.25 + return L4_EOK;
1.26 }
1.27
1.28 fileid_t HostFileOpener::_get_fileid(const char *path, bool create)