Uploaded image for project: 'Module Tools'
  1. Module Tools
  2. MODTOOLS-69

mod2zmod fails to create any files if datapath does not exist

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: others
    • Labels:
      None

      Description

      mod2zmod ASV path/which/does/not/exist 4 2 somepassword

      Appears to do all the work, but does not create any files as the result. Nor is there any error message.

      Sword version 1.6.1 (NB! not in "Affects Version/s:" list)

      Here's some strace output from the first accesses to the files:
      ...
      unlink("path/which/does/not/exist/ot.bzs") = -1 ENOENT (No such file or directory)
      lseek(19, 0, SEEK_CUR) = 15
      close(19) = 0
      access("path/which/does/not/exist/ot.bzs", R_OK) = -1 ENOENT (No such file or directory)
      open("path/which/does/not/exist/ot.bzs", O_WRONLY|O_CREAT, 0600) = -1 ENOENT (No such file or directory)
      unlink("path/which/does/not/exist/nt.bzs") = -1 ENOENT (No such file or directory)
      access("path/which/does/not/exist/nt.bzs", R_OK) = -1 ENOENT (No such file or directory)
      open("path/which/does/not/exist/nt.bzs", O_WRONLY|O_CREAT, 0600) = -1 ENOENT (No such file or directory)
      unlink("path/which/does/not/exist/ot.bzz") = -1 ENOENT (No such file or directory)
      access("path/which/does/not/exist/ot.bzz", R_OK) = -1 ENOENT (No such file or directory)
      open("path/which/does/not/exist/ot.bzz", O_WRONLY|O_CREAT, 0600) = -1 ENOENT (No such file or directory)
      unlink("path/which/does/not/exist/nt.bzz") = -1 ENOENT (No such file or directory)
      access("path/which/does/not/exist/nt.bzz", R_OK) = -1 ENOENT (No such file or directory)
      open("path/which/does/not/exist/nt.bzz", O_WRONLY|O_CREAT, 0600) = -1 ENOENT (No such file or directory)
      unlink("path/which/does/not/exist/ot.bzv") = -1 ENOENT (No such file or directory)
      access("path/which/does/not/exist/ot.bzv", R_OK) = -1 ENOENT (No such file or directory)
      open("path/which/does/not/exist/ot.bzv", O_WRONLY|O_CREAT, 0600) = -1 ENOENT (No such file or directory)
      unlink("path/which/does/not/exist/nt.bzv") = -1 ENOENT (No such file or directory)
      access("path/which/does/not/exist/nt.bzv", R_OK) = -1 ENOENT (No such file or directory)
      open("path/which/does/not/exist/nt.bzv", O_WRONLY|O_CREAT, 0600) = -1 ENOENT (No such file or directory)
      write(4294967295, "\0\0\0\0", 4) = -1 EBADF (Bad file descriptor)
      write(4294967295, "\0\0\0\0", 4) = -1 EBADF (Bad file descriptor)
      ...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jotik Jaak Ristioja
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: