Fixed username detection bug
This commit is contained in:
		
							parent
							
								
									3fe32125a3
								
							
						
					
					
						commit
						25a6478553
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -258,7 +258,7 @@ Oneshot::Oneshot(const RGSSThreadData &threadData)
 | 
				
			||||||
	struct passwd *pwd = getpwuid(getuid());
 | 
						struct passwd *pwd = getpwuid(getuid());
 | 
				
			||||||
	if (pwd)
 | 
						if (pwd)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		if (pwd->pw_gecos && pwd->pw_gecos[0] != ',')
 | 
					        if (pwd->pw_gecos && pwd->pw_gecos[0] && pwd->pw_gecos[0] != ',')
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
			//Get the user's full name
 | 
								//Get the user's full name
 | 
				
			||||||
			int comma = 0;
 | 
								int comma = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue