Skip to content

inotify: Avoid empty root directory string

When gio monitors a directory, it will delete the extra "/" at the end of the directory string, but when the directory is "/", this will cause the modified directory string to be empty, and eventually the monitoring will fail. The solution is to delete only if the directory string length is greater than 1.

Merge request reports