mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	If built with systemd, remove some environment variables it uses. From Ciprian
Dorin Craciun, GitHub issue 4035.
This commit is contained in:
		@@ -264,6 +264,12 @@ environ_for_session(struct session *s, int no_TERM)
 | 
			
		||||
		environ_set(env, "TERM_PROGRAM_VERSION", 0, "%s", getversion());
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_SYSTEMD
 | 
			
		||||
	environ_clear(env, "LISTEN_PID");
 | 
			
		||||
	environ_clear(env, "LISTEN_FDS");
 | 
			
		||||
	environ_clear(env, "LISTEN_FDNAMES");
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	if (s != NULL)
 | 
			
		||||
		idx = s->id;
 | 
			
		||||
	else
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user