unix/fiss

fixing printing wrong service (079ab4b06b1de790cf11e3b770ecfc19ee985081)
Repositories | LICENSE

commit 079ab4b06b1de790cf11e3b770ecfc19ee985081
parent 1611b8687e34cbb40fb989107a781ec329b6950b
Author: Friedel Schön <[email protected]>
Date:   Thu, 25 May 2023 23:53:20 +0200

fixing printing wrong service

Diffstat:
Msrc/exec/fsvc.c8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/exec/fsvc.c b/src/exec/fsvc.c @@ -222,23 +222,23 @@ int main(int argc, char** argv) { for (int i = 0; i < argc; i++) { if ((dir = open(argv[i], O_DIRECTORY)) == -1) { - fprintf(stderr, "warning: '%s' is not a valid directory\n", argv[0]); + fprintf(stderr, "warning: '%s' is not a valid directory\n", argv[i]); continue; } if (check_service(dir) == -1) { - fprintf(stderr, "warning: '%s' is not a valid service\n", argv[0]); + fprintf(stderr, "warning: '%s' is not a valid service\n", argv[i]); continue; } if ((mod = get_mtime(dir)) == -1) { - fprintf(stderr, "warning: cannot get modify-time of '%s'\n", argv[0]); + fprintf(stderr, "warning: cannot get modify-time of '%s'\n", argv[i]); continue; } if (command[0] != '\0') { if (send_command(dir, command) == -1) { - fprintf(stderr, "warning: unable to send command to '%s'\n", argv[0]); + fprintf(stderr, "warning: unable to send command to '%s'\n", argv[i]); continue; } } else {