diff options
Diffstat (limited to 'debianutils')
-rw-r--r-- | debianutils/run_parts.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c index cb4a4e4..42170bc 100644 --- a/debianutils/run_parts.c +++ b/debianutils/run_parts.c @@ -60,10 +60,7 @@ struct globals { */ static bool invalid_name(const char *c) { - const char *base_name = strrchr(c, '/'); - - if (base_name) - c = base_name + 1; + c = bb_basename(c); while (*c && (isalnum(*c) || *c == '_' || *c == '-')) c++; |