소스 검색

Kernel: Fix broken passing of String as printf() argument in realpath()

Andreas Kling 5 년 전
부모
커밋
6fe0fa30f2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Kernel/Process.cpp

+ 2 - 2
Kernel/Process.cpp

@@ -1866,8 +1866,8 @@ int Process::sys$realpath(const char* pathname, char* buffer, size_t size)
     // FIXME: Once resolve_path is fixed to deal with .. and . , remove the use of FileSystemPath::canonical_path.
     FileSystemPath canonical_path(custody->absolute_path());
     if (!canonical_path.is_valid()) {
-        printf("FileSystemPath failed to canonicalize '%s'\n", custody->absolute_path());
-        return 1;
+        dbg() << "FileSystemPath failed to canonicalize " << custody->absolute_path();
+        ASSERT_NOT_REACHED();
     }
 
     strncpy(buffer, canonical_path.string().characters(), size);