Hi Lauri,

Lauri Tirkkonen wrote on Wed, Mar 25, 2015 at 03:45:45PM +0200:

> Patch attached, although this will probably still fail for mount
> sources which end with " on" including the space (if that's even
> possible).

I agree that trying to deal with mount point names containing
whitespace seems excessive complexity.

Patch applied, thanks for reporting.
  Ingo


> Index: libexec/security/security
> ===================================================================
> RCS file: /cvs/src/libexec/security/security,v
> retrieving revision 1.32
> diff -u -p -r1.32 security
> --- libexec/security/security 4 Dec 2014 00:07:21 -0000       1.32
> +++ libexec/security/security 25 Mar 2015 13:31:56 -0000
> @@ -528,7 +528,7 @@ sub find_special_files {
>           "cannot spawn mount: $!"
>           and return;
>       while (<$fh>) {
> -             my ($path, $type) = /on\s+(.*?)\s+type\s+(\w+)/;
> +             my ($path, $type) = /\s+on\s+(.*?)\s+type\s+(\w+)/;
>               $skip{$path} = 1 if $path &&
>                   ($type =~ /^(?:a|nnp|proc)fs$/ || !/\(.*local.*\)/);
>       }

Reply via email to