More changes to support the shell script.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402321
This commit is contained in:
parent
853b080aa4
commit
3cff457c6d
@ -283,12 +283,18 @@ MD5Status ConnectionPool::GetMD5UpdateStatus( const char *md5 , smud_connection
|
|||||||
}
|
}
|
||||||
|
|
||||||
char filename[100];
|
char filename[100];
|
||||||
fgets(filename, sizeof(filename), file);
|
filename[0] = '\n';
|
||||||
if (filename[strlen(filename)-1] == '\n')
|
|
||||||
|
while (filename[0] == '\n')
|
||||||
{
|
{
|
||||||
filename[strlen(filename)-1] = '\0';
|
fgets(filename, sizeof(filename), file);
|
||||||
|
if (filename[strlen(filename)-1] == '\n')
|
||||||
|
{
|
||||||
|
filename[strlen(filename)-1] = '\0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
printf("Filename is %s\n", filename);
|
printf("Filename is %s\n", filename);
|
||||||
|
|
||||||
//We now need to match this filename with one of our mmap'd files in memory and store it until send gets called.
|
//We now need to match this filename with one of our mmap'd files in memory and store it until send gets called.
|
||||||
|
Loading…
Reference in New Issue
Block a user