From 9a6008a07ce8ea8c93e8f6bae749fab673e47ca2 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Sun, 13 Oct 2024 02:28:50 +0300 Subject: [PATCH] driver: Fix wrong file type in RegisterBlockDevice() S_IFCHR -> S_IFBLK --- core/driver/daemon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/driver/daemon.cpp b/core/driver/daemon.cpp index eeb385d..b6cad3d 100644 --- a/core/driver/daemon.cpp +++ b/core/driver/daemon.cpp @@ -439,7 +439,7 @@ namespace Driver mode_t mode = S_IRWXU | S_IRGRP | S_IROTH | - S_IFCHR; + S_IFBLK; node = fs->ForceCreate(devInputNode, deviceName.c_str(), mode); node->Node->SetDevice(DriverID, i);