Disable Unix path detection mechanism
This commit is contained in:
		
							parent
							
								
									ed9245add2
								
							
						
					
					
						commit
						4de6db6c47
					
				
					 1 changed files with 20 additions and 6 deletions
				
			
		| 
						 | 
					@ -4460,16 +4460,29 @@ handle_user_input (session *sess, char *text, int history, int nocommand)
 | 
				
			||||||
		return 1;
 | 
							return 1;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if 0 /* Who would remember all this? */
 | 
				
			||||||
	if (prefs.hex_input_command_char[0] == '/')
 | 
						if (prefs.hex_input_command_char[0] == '/')
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		int i;
 | 
							int i;
 | 
				
			||||||
		const char *unix_dirs [] = {
 | 
							const char *unix_dirs [] = {
 | 
				
			||||||
			"/bin/", "/boot/", "/dev/",
 | 
								"/bin/",
 | 
				
			||||||
			"/etc/", "/home/", "/lib/",
 | 
								"/boot/",
 | 
				
			||||||
			"/lost+found/", "/mnt/", "/opt/",
 | 
								"/dev/",
 | 
				
			||||||
			"/proc/", "/root/", "/sbin/",
 | 
								"/etc/",
 | 
				
			||||||
			"/tmp/", "/usr/", "/var/",
 | 
								"/home/",
 | 
				
			||||||
			"/gnome/", NULL};
 | 
								"/lib/",
 | 
				
			||||||
 | 
								"/lost+found/",
 | 
				
			||||||
 | 
								"/mnt/",
 | 
				
			||||||
 | 
								"/opt/",
 | 
				
			||||||
 | 
								"/proc/",
 | 
				
			||||||
 | 
								"/root/",
 | 
				
			||||||
 | 
								"/sbin/",
 | 
				
			||||||
 | 
								"/tmp/",
 | 
				
			||||||
 | 
								"/usr/",
 | 
				
			||||||
 | 
								"/var/",
 | 
				
			||||||
 | 
								"/gnome/",
 | 
				
			||||||
 | 
								NULL
 | 
				
			||||||
 | 
							};
 | 
				
			||||||
		for (i = 0; unix_dirs[i] != NULL; i++)
 | 
							for (i = 0; unix_dirs[i] != NULL; i++)
 | 
				
			||||||
			if (strncmp (text, unix_dirs[i], strlen (unix_dirs[i]))==0)
 | 
								if (strncmp (text, unix_dirs[i], strlen (unix_dirs[i]))==0)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
| 
						 | 
					@ -4477,6 +4490,7 @@ handle_user_input (session *sess, char *text, int history, int nocommand)
 | 
				
			||||||
				return 1;
 | 
									return 1;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return handle_command (sess, text + 1, TRUE);
 | 
						return handle_command (sess, text + 1, TRUE);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue