diff options
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 576f58f..f395703 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -879,14 +879,11 @@ ourSims->tbl->put(ourSims->tbl, sim, ini, sizeof(qlisttbl_t)); | |||
879 | if (!WIFEXITED(j)) | 879 | if (!WIFEXITED(j)) |
880 | E("chmod command failed!"); | 880 | E("chmod command failed!"); |
881 | 881 | ||
882 | 882 | char *link = xmprintf("%s/%s.shini", scBin, simd->tab); | |
883 | char *link = xmprintf("%s/%s.shini", scBin, simd->tab); | 883 | I("Symlinking %s to %s", newPath, link); |
884 | I("Symlinking %s to %s", newPath, link); | 884 | if (0 != symlink(newPath, link)) |
885 | if (0 != symlink(newPath, link)) | 885 | perror_msg("Symlinking %s to %s", newPath, link); |
886 | perror_msg("Symlinking %s to %s", newPath, link); | 886 | free(link); |
887 | free(link); | ||
888 | |||
889 | |||
890 | } | 887 | } |
891 | free(cmd); | 888 | free(cmd); |
892 | } | 889 | } |