On Wed, Dec 1, 2010 at 15:39, Michal Schmidt <mschm...@redhat.com> wrote:
> If you have a path unit with:
>  DirectoryNotEmpty=/foo
> and "/foo" does not exist, creating it later escapes the attention of systemd.
>
> When adding watches for parent directories, systemd never adds one for the 
> root
> directory. It attempts to add a watch for an empty string instead, which 
> fails.
>
> If the path is "/", we must not trim the slash.

> +                /* Trim the path at the last slash. Keep the slash if it's 
> the root dir. */
> +                slash[slash == k] = 0;

Awesome index logic :)

Applied.

Kay
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to