Dnia środa, 11 lutego 2015 13:08:26 Lennart Poettering pisze:

> This optimization is not valid.
> 
> If 'word' is set to "sh", then l will be 2, and strneq(word, "shared",
> 2) is true, but we don't actually want to allow such abbreviations!
> 
> Lennart

True, I can use strlen("shared" ) then as a n value in strneq. Or please at 
least change that:

-                else if (streq(word, "private"))
+               else if (streq(t, "private"))

regards,
-- 
Maciej Wereski
Samsung R&D Institute Poland
Samsung Electronics
m.were...@partner.samsung.com
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to