mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	Kernel: Honor permission mode when creating new directories in DevTmpFS
This commit is contained in:
		
							parent
							
								
									f7f14d52e0
								
							
						
					
					
						commit
						e23dda81de
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -258,6 +258,7 @@ ErrorOr<NonnullRefPtr<Inode>> DevTmpFSDirectoryInode::create_child(StringView na | |||
|     if (metadata.is_directory()) { | ||||
|         auto name_kstring = TRY(KString::try_create(name)); | ||||
|         auto new_directory_inode = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) DevTmpFSDirectoryInode(fs(), move(name_kstring)))); | ||||
|         TRY(new_directory_inode->chmod(mode)); | ||||
|         m_nodes.append(*new_directory_inode); | ||||
|         return new_directory_inode; | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Liav A
						Liav A