Return to server.c CVS log | Up to [local] / src / usr.bin / rdistd |
version 1.15, 2003/06/03 02:56:15 | version 1.16, 2003/07/07 14:39:26 | ||
---|---|---|---|
|
|
||
} | } | ||
uptodate = 0; | uptodate = 0; | ||
if ((i = readlink(target, tbuf, sizeof(tbuf))) != -1) { | if ((i = readlink(target, tbuf, sizeof(tbuf)-1)) != -1) { | ||
tbuf[i] = '\0'; | tbuf[i] = '\0'; | ||
if (i == size && strncmp(buf, tbuf, (int) size) == 0) | if (i == size && strncmp(buf, tbuf, (int) size) == 0) | ||
uptodate = 1; | uptodate = 1; |