mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	core-util: avoid calling fchmod if already right mode
fchmod is denied in chromium sandbox.
This commit is contained in:
		
							parent
							
								
									336a2cc6f0
								
							
						
					
					
						commit
						c021bfc6e0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -343,7 +343,7 @@ again:
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef HAVE_FCHMOD
 | 
					#ifdef HAVE_FCHMOD
 | 
				
			||||||
    if (fchmod(fd, m) < 0) {
 | 
					    if ((st.st_mode & 07777) != m && fchmod(fd, m) < 0) {
 | 
				
			||||||
        pa_assert_se(pa_close(fd) >= 0);
 | 
					        pa_assert_se(pa_close(fd) >= 0);
 | 
				
			||||||
        goto fail;
 | 
					        goto fail;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue