dispatcher: fix detection of no-wait dispatcher scripts
While at it, use NM_STR_HAS_SUFFIX() with the string literal.
Fixes: 35a428f168
('dispatcher: look for the scripts in /usr/lib as well')
This commit is contained in:
@@ -655,7 +655,7 @@ script_must_wait (const char *path)
|
||||
|
||||
dir = g_path_get_dirname (link);
|
||||
real = realpath (dir, NULL);
|
||||
if (real && !g_str_has_suffix (real, "/no-wait.d"))
|
||||
if (NM_STR_HAS_SUFFIX (real, "/no-wait.d"))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user