X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=backend.ml;h=535c5493a6256d5cc87ca8921c0d74452c6cad3f;hb=26326ab885a36f7e0661703b735109df36520b30;hp=b2c3d24984dc3705932573a5b13927deeb747478;hpb=2fa80a7145ccec83abc2fb32a709292af9960bcc;p=vsys.git diff --git a/backend.ml b/backend.ml index b2c3d24..535c549 100644 --- a/backend.ml +++ b/backend.ml @@ -41,7 +41,7 @@ class backendHandler dir_root (frontend_lst: frontendHandler list) = (** Regular expression that defines a legal script name. Filter out * temporary files using it *) - val file_regexp = Str.regexp "^[a-zA-Z][a-zA-Z0-9_'.''-']*$" + val file_regexp = Str.regexp "^[a-zA-Z][a-zA-Z0-9_\.\-]*$" val acl_file_regexp = Str.regexp ".*acl$" (** Somebody created a new directory *) @@ -84,7 +84,7 @@ class backendHandler dir_root (frontend_lst: frontendHandler list) = with _ -> None - method is_acl fname = Str.string_match acl_file_regexp fname 1 + method is_acl fname = Str.string_match acl_file_regexp fname 0 (** Gets called every time there's an inotify event at the backend @param dirname Name of the backend directory