forked from GNOME/rhythmbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file-helpers: fix race condition in rb_uri_create_parent_dirs()
rb_uri_create_parent_dirs() call currently fails if the parent directory of the passed file uri is created by another process / thread after check_file_is_directory() returns FALSE. We now get rid of check_file_is_directory(), and call g_file_make_directory_with_parents() directly. If the call fails because the dir already exists, we consider it a success and return, rather than reporting it as an error. Closes: #1743
- Loading branch information
Showing
1 changed file
with
9 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters