Project

General

Profile

Bug #4961

libshare_nfs mangles multiple options

Added by Marcel Telka over 5 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
lib - userland libraries
Start date:
2014-07-03
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

libshare_nfs mangles multiple options:

# share -o root_mapping=1,root_mapping=2 /tmp
# share
-               /tmp   sec=sys,root_mapping=1:2   ""  
#

The root_mapping=1:2 is invalid. Usually the merging of the options is expected and does not cause any problem, for example here:

# share -o root=client1,root=client2 /tmp
# share
-               /tmp   sec=sys,root=client1:client2   ""  
#

But not all options should be merged this way.

Also available in: Atom PDF