summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2020-11-15 18:53:36 +0100
committerOndrej Holy <oholy@redhat.com>2020-12-16 10:28:34 +0000
commitd45953ee95e259d8cc2bb63930992b932dd47134 (patch)
tree78105d843abf26d560231ddd26a1da403b0ecbeb /daemon
parentbf007a92721174773b4db68ed23a4da1e1f8f7e1 (diff)
downloadgvfs-d45953ee95e259d8cc2bb63930992b932dd47134.tar.gz
mtp: Add TODO about introducing storage name duplicates
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gvfsbackendmtp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 42c2955e..d3c6daf2 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -139,6 +139,9 @@ static char *create_storage_name (const LIBMTP_devicestorage_t *storage)
or not. Since this function is called in several places, it is
safest to perform this check here, each time that storage name needs
to be created. */
+ /* TODO: The returned name is not unique if suffix-adding happens
+ to introduce a collision with another storage's unsuffixed
+ description; unlikely but possible. */
gboolean is_unique = TRUE;
const LIBMTP_devicestorage_t *tmp_storage;