The zip utility has problems when writing to a CIFS share

Solution Verified - Updated -

Issue

  • The zip utility has problems with error on cifs share:
$ zip /mnt/cifs/testfile.zip testfile.txt
  adding: testfile.txt (stored 0%)
        zip warning: new zip file left as: /mnt/cifs/zi2jhwAg
zip I/O error: No such file or directory
zip error: Could not create output file (was replacing the original zip file)

Environment

  • Red Hat Enterprise Linux 9.5.z
  • Red Hat Enterprise Linux 9.6.z
    • Seen on kernel-5.14.0-570.19.1.el9_6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content