From: Sapan Bhatia Date: Tue, 30 Sep 2008 14:48:02 +0000 (+0000) Subject: Fixed a warning. X-Git-Tag: vsys-0.9-0~41 X-Git-Url: http://git.onelab.eu/?p=vsys.git;a=commitdiff_plain;h=2fa80a7145ccec83abc2fb32a709292af9960bcc;ds=sidebyside Fixed a warning. --- diff --git a/backend.ml b/backend.ml index 535c549..b2c3d24 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 0 + method is_acl fname = Str.string_match acl_file_regexp fname 1 (** Gets called every time there's an inotify event at the backend @param dirname Name of the backend directory