Pārlūkot izejas kodu

FIX: DARWIN: unmount driver compatible with MacOS 13 (#689)

rich2014 2 gadi atpakaļ
vecāks
revīzija
8904de8ff4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/platform/unix/umyunix.pas

+ 1 - 1
src/platform/unix/umyunix.pas

@@ -539,7 +539,7 @@ begin
       Result := fpSystemStatus('pumount ' + Drive^.DeviceId) = 0;
     if not Result then
 {$ELSEIF DEFINED(DARWIN)}
-    Result := fpSystemStatus('diskutil unmount ' + Drive^.DeviceId) = 0;
+    Result := fpSystemStatus('diskutil unmount ' + Drive^.Path) = 0;
     if not Result then
 {$ENDIF}
     Result := fpSystemStatus('umount ' + Drive^.Path) = 0;