diff options
Diffstat (limited to 'util/toplazyBBM.c')
-rw-r--r-- | util/toplazyBBM.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/util/toplazyBBM.c b/util/toplazyBBM.c index 3b881c5f..38f4d55d 100644 --- a/util/toplazyBBM.c +++ b/util/toplazyBBM.c @@ -31,17 +31,6 @@ int bmlostdays_cmp(const void *va, const void *vb) else return 1; } - -int LINK(char* src, char* dst){ - char cmd[200]; - if(symlink(src,dst) == -1) - { - sprintf(cmd, "/bin/cp -R %s %s", src, dst); - return system(cmd); - } - return 0; -} - int main(int argc, char *argv[]) { int bmid, i, j=0; @@ -183,9 +172,9 @@ int main(int argc, char *argv[]) } unlink(genbuf); if(lostdays <= 30){ - LINK(OUTFILE, genbuf); + Link(OUTFILE, genbuf); }else{ - LINK(FIREFILE, genbuf); + Link(FIREFILE, genbuf); } sprintf(genbuf, BBSHOME "/home/%c/%s/.DIR", lostbms[i].bmname[0], lostbms[i].bmname); |