Warning when exported path contains spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nfs-utils (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
root@zippy:~ # mkdir /tmp/x /tmp/"x withspace"
root@zippy:~ # cat >/etc/exports
"/tmp/x" 0.0.0.0/
"/tmp/x withspace" 0.0.0.0/
root@zippy:~ # exportfs -ar
exportfs: Warning: /tmp/x withspace does not support NFS export.
root@zippy:~ # ls -lad /tmp/x*
drwxr-xr-x 2 root root 1024 2008-03-01 19:53 /tmp/x
drwxr-xr-x 2 root root 1024 2008-03-01 19:53 /tmp/x withspace
root@zippy:~ # dpkg -l nfs-common nfs-kernel-server
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii nfs-common 1:1.1.1~git-20070 NFS support files common to client and server
ii nfs-kernel-server 1:1.1.1~git-20070 support for NFS kernel server
root@zippy:~ # man exports |grep -C 1 spaces
the end of the line. Entries may be continued across newlines using a
backslash. If an export name contains spaces it should be quoted using
double quotes. You can also specify spaces or other unusual character
in the export name using a backslash followed by the character code as
root@zippy:~ #
summary: |
- Exported filesystems do not allow spaces + Warning when exported path contains spaces |
Additionally, backslash-space and backslash-040 give the same error message when used in place of spaces, with or without quotes.