db/update/Walk: pass concatenated .mpdignore URI to storage.MapUTF8()
Fixes the "Unrecognized URI" error with the udisks storage plugin, which is caused by the kludge in UdisksStorage::MapUTF8().
This commit is contained in:
		
							
								
								
									
										2
									
								
								NEWS
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								NEWS
									
									
									
									
									
								
							@@ -1,6 +1,8 @@
 | 
				
			|||||||
ver 0.21.25 (not yet released)
 | 
					ver 0.21.25 (not yet released)
 | 
				
			||||||
* protocol:
 | 
					* protocol:
 | 
				
			||||||
  - fix crash when using "rangeid" while playing
 | 
					  - fix crash when using "rangeid" while playing
 | 
				
			||||||
 | 
					* storage
 | 
				
			||||||
 | 
					  - udisks: fix reading ".mpdignore"
 | 
				
			||||||
* input
 | 
					* input
 | 
				
			||||||
  - file: detect premature end of file
 | 
					  - file: detect premature end of file
 | 
				
			||||||
  - smbclient: don't send credentials to MPD clients
 | 
					  - smbclient: don't send credentials to MPD clients
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -341,8 +341,8 @@ UpdateWalk::UpdateDirectory(Directory &directory,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	try {
 | 
						try {
 | 
				
			||||||
		Mutex mutex;
 | 
							Mutex mutex;
 | 
				
			||||||
		auto is = InputStream::OpenReady(PathTraitsUTF8::Build(storage.MapUTF8(directory.GetPath()).c_str(),
 | 
							auto is = InputStream::OpenReady(storage.MapUTF8(PathTraitsUTF8::Build(directory.GetPath(),
 | 
				
			||||||
								       ".mpdignore").c_str(),
 | 
															       ".mpdignore").c_str()).c_str(),
 | 
				
			||||||
						 mutex);
 | 
											 mutex);
 | 
				
			||||||
		child_exclude_list.Load(std::move(is));
 | 
							child_exclude_list.Load(std::move(is));
 | 
				
			||||||
	} catch (...) {
 | 
						} catch (...) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user