Browse Source

Merge pull request #24 from herrhotzenplotz/fbsd-arm64-sigsegv

Segmentation Fault deep in libc on FreeBSD 13.0 arm64
Alexey Kutepov 4 years ago
parent
commit
e7ee9a18b9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      nobuild.h

+ 2 - 2
nobuild.h

@@ -938,7 +938,7 @@ void path_rm(Cstr path)
 
 
         if (rmdir(path) < 0) {
         if (rmdir(path) < 0) {
             if (errno == ENOENT) {
             if (errno == ENOENT) {
-                WARN("directory %s does not exist");
+                WARN("directory %s does not exist", path);
             } else {
             } else {
                 PANIC("could not remove directory %s: %s", path, strerror(errno));
                 PANIC("could not remove directory %s: %s", path, strerror(errno));
             }
             }
@@ -946,7 +946,7 @@ void path_rm(Cstr path)
     } else {
     } else {
         if (unlink(path) < 0) {
         if (unlink(path) < 0) {
             if (errno == ENOENT) {
             if (errno == ENOENT) {
-                WARN("file %s does not exist");
+                WARN("file %s does not exist", path);
             } else {
             } else {
                 PANIC("could not remove file %s: %s", path, strerror(errno));
                 PANIC("could not remove file %s: %s", path, strerror(errno));
             }
             }