diff options
author | NeilBrown <neilb@suse.de> | 2015-02-25 16:47:56 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-02-26 14:34:00 -0500 |
commit | 1e4a4c3816ca5a1e1a345117a201d9cc6c468beb (patch) | |
tree | a71100ce4c4ccb489f4e652b964a7cdf568fc6f4 /support/include/nfs_paths.h | |
parent | cb80ee2db749a19814d1851a05c6bfa81f98d71d (diff) | |
download | nfs-utils-1e4a4c3816ca5a1e1a345117a201d9cc6c468beb.tar.gz nfs-utils-1e4a4c3816ca5a1e1a345117a201d9cc6c468beb.tar.xz nfs-utils-1e4a4c3816ca5a1e1a345117a201d9cc6c468beb.zip |
mountd: fix next_mnt handling for "/"
If the (exported) path passed to next_mnt() is simply "/", next_mnt()
will not report any children, as none start with "/" followed by a '/'.
So make a special case for strlen(p)==1. In that case, return all
children.
This gives correct handling if only "/" is exported.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include/nfs_paths.h')
0 files changed, 0 insertions, 0 deletions