mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	
							parent
							
								
									3496327e69
								
							
						
					
					
						commit
						407489cd71
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -193,7 +193,7 @@ int pw_conf_save_state(const char *prefix, const char *name, struct pw_propertie
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	tmp_name = alloca(strlen(name)+5);
 | 
						tmp_name = alloca(strlen(name)+5);
 | 
				
			||||||
	sprintf(tmp_name, "%s.tmp", name);
 | 
						sprintf(tmp_name, "%s.tmp", name);
 | 
				
			||||||
	if ((fd = openat(sfd, tmp_name,  O_CLOEXEC | O_CREAT | O_WRONLY | O_TRUNC, 0700)) < 0) {
 | 
						if ((fd = openat(sfd, tmp_name,  O_CLOEXEC | O_CREAT | O_WRONLY | O_TRUNC, 0600)) < 0) {
 | 
				
			||||||
		pw_log_error("can't open file '%s': %m", tmp_name);
 | 
							pw_log_error("can't open file '%s': %m", tmp_name);
 | 
				
			||||||
		res = -errno;
 | 
							res = -errno;
 | 
				
			||||||
		goto error;
 | 
							goto error;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue