mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	conf: show path of any missing configuration file
In all cases where a configuration file is not found, show an error message with its full path.
This commit is contained in:
		
							parent
							
								
									8fab259170
								
							
						
					
					
						commit
						a73ad3f265
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -591,6 +591,7 @@ static int get_char_skip_comments(input_t *input)
 | 
			
		|||
			}
 | 
			
		||||
			err = snd_input_stdio_open(&in, str, "r");
 | 
			
		||||
			if (err < 0) {
 | 
			
		||||
				SNDERR("Cannot access file %s", str);
 | 
			
		||||
				free(str);
 | 
			
		||||
				return err;
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			@ -3005,6 +3006,7 @@ int snd_config_update_r(snd_config_t **_top, snd_config_update_t **_update, cons
 | 
			
		|||
			lf->ino = st.st_ino;
 | 
			
		||||
			lf->mtime = st.st_mtime;
 | 
			
		||||
		} else {
 | 
			
		||||
			SNDERR("Cannot access file %s", lf->name);
 | 
			
		||||
			memmove(&local->finfo[k], &local->finfo[k+1], sizeof(struct finfo) * (local->count - k - 1));
 | 
			
		||||
			k--;
 | 
			
		||||
			local->count--;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue