forked from Bananymous/banan-os
				
			Kernel: Don't allow opening file with path ""
This commit is contained in:
		
							parent
							
								
									994713d04c
								
							
						
					
					
						commit
						4cdf218145
					
				|  | @ -445,6 +445,9 @@ namespace Kernel | |||
| 	{ | ||||
| 		ASSERT(m_process_lock.is_locked()); | ||||
| 
 | ||||
| 		if (path[0] == '\0') | ||||
| 			return BAN::Error::from_errno(ENOENT); | ||||
| 
 | ||||
| 		auto relative_parent = TRY(find_relative_parent(fd, path)); | ||||
| 
 | ||||
| 		VirtualFileSystem::File parent; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue