aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/argp-standalone
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-06-15 08:48:18 +0200
committerChristian Lamparter <chunkeey@gmail.com>2021-12-29 21:40:40 +0100
commitdbe2a6343f906ddf48142ee72eb81b3f311cfe6f (patch)
treed5a972e386072437616e39affcb920e4a86eac3a /package/libs/argp-standalone
parente81dd8a10a141936650da707447bdf3f976aab4b (diff)
downloadupstream-dbe2a6343f906ddf48142ee72eb81b3f311cfe6f.tar.gz
upstream-dbe2a6343f906ddf48142ee72eb81b3f311cfe6f.tar.bz2
upstream-dbe2a6343f906ddf48142ee72eb81b3f311cfe6f.zip
base-files: fix service_running check
The following command checks if a instance of a service is running. /etc/init.d/<service> running <instance> In the variable `$@`, which is passed to the function `service_running`, the first argument is always the `instance` which should be checked. Because all other variables where removed from `$@` with `shift`. Before this change the first argument of `$@` was set to the `$service` Variable. So the function does not work as expected. The `$service` variable was always the instance which should be checked. This is not what we want. Signed-off-by: Florian Eckert <fe@dev.tdt.de> Reviewed-by: Sungbo Eo <mans0n@gorani.run> (cherry picked from commit dd681838d370f1f6f6fa1bf1f22b0414322292f3)
Diffstat (limited to 'package/libs/argp-standalone')
0 files changed, 0 insertions, 0 deletions