1.1 --- a/libfsserver/lib/generic/resource_registry.cc Tue Feb 08 00:03:32 2022 +0100
1.2 +++ b/libfsserver/lib/generic/resource_registry.cc Wed Feb 09 22:30:29 2022 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Filesystem resource registry incorporating opening functionality.
1.6 *
1.7 - * Copyright (C) 2021 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2021, 2022 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -143,7 +143,8 @@
1.13 std::lock_guard<std::mutex> guard(_lock);
1.14
1.15 /* Obtain an identifier for the object, even for new files (subject to use
1.16 - of the appropriate flag). */
1.17 + of the appropriate flag). This also checks the access rights for any
1.18 + configured user. */
1.19
1.20 fileid_t fileid;
1.21 long err = opening->get_fileid(path, flags, &fileid);
1.22 @@ -176,7 +177,8 @@
1.23 {
1.24 std::lock_guard<std::mutex> guard(_lock);
1.25
1.26 - /* Obtain an identifier for any recognised object. */
1.27 + /* Obtain an identifier for any recognised object. This also checks the
1.28 + access rights for any configured user. */
1.29
1.30 fileid_t fileid;
1.31 long err = opening->get_fileid(path, 0, &fileid);
1.32 @@ -226,7 +228,8 @@
1.33 long err;
1.34 fileid_t source_fileid, target_fileid;
1.35
1.36 - /* Obtain an identifier for any recognised object. */
1.37 + /* Obtain an identifier for any recognised object. This also checks the
1.38 + access rights for any configured user. */
1.39
1.40 err = opening->get_fileid(source, 0, &source_fileid);
1.41