mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	daemon-conf: Don't make log files executable.
This commit is contained in:
		
							parent
							
								
									2f55da5baa
								
							
						
					
					
						commit
						dccbefa394
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -194,7 +194,7 @@ int pa_daemon_conf_set_log_target(pa_daemon_conf *c, const char *string) {
 | 
				
			||||||
        pa_strlcpy(file_path, string + 5, sizeof(file_path));
 | 
					        pa_strlcpy(file_path, string + 5, sizeof(file_path));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /* Open target file with user rights */
 | 
					        /* Open target file with user rights */
 | 
				
			||||||
        if ((log_fd = open(file_path, O_RDWR|O_TRUNC|O_CREAT, S_IRWXU)) >= 0) {
 | 
					        if ((log_fd = open(file_path, O_RDWR|O_TRUNC|O_CREAT, S_IRUSR | S_IWUSR)) >= 0) {
 | 
				
			||||||
             c->auto_log_target = 0;
 | 
					             c->auto_log_target = 0;
 | 
				
			||||||
             c->log_target = PA_LOG_FD;
 | 
					             c->log_target = PA_LOG_FD;
 | 
				
			||||||
             pa_log_set_fd(log_fd);
 | 
					             pa_log_set_fd(log_fd);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue