mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
Minor, insert '/' only if pasting components require it
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
dfd41a1b37
commit
f8a989439b
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -454,7 +454,7 @@ int run_parts(char *dir, char *cmd)
|
||||
int status;
|
||||
int exit_status;
|
||||
|
||||
snprintf(path, sizeof(path), "%s/%s", dir, name);
|
||||
snprintf(path, sizeof(path), "%s%s%s", dir, fisslashdir(dir) ? "" : "/", name);
|
||||
if (stat(path, &st)) {
|
||||
_d("Failed stat(%s): %s", path, strerror(errno));
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user