45Drives / cockpit-file-sharing

A Cockpit plugin to easily manage samba and NFS file sharing.
GNU General Public License v3.0
596 stars 32 forks source link

NFS exports file import fails if there is more than a space after share path #108

Open ttufts opened 4 months ago

ttufts commented 4 months ago

Bug Info

Describe the bug exports file format supports unlimited whitespace between share name and options. When importing an exports file into cockpit, there is an error if there is more than a single space between parts of each line.

To Reproduce Steps to reproduce the behavior:

  1. Create an exports file with multiple spaces between the mnt path and the options
  2. Attempt to import the exports file
  3. See error

Expected behavior Properly parse exports file according to man page

Screenshots If applicable, add screenshots to help explain your problem. image

Client Side

Desktop (please complete the following information):

Server Side