diff -r ce9790523346 -r 37a512d7b8f6 src/server/safs/service.c --- a/src/server/safs/service.c Sun Jan 13 14:16:45 2013 +0100 +++ b/src/server/safs/service.c Sat Jan 19 20:13:07 2013 +0100 @@ -62,7 +62,7 @@ /* open the file */ int fd = open(ppath, O_RDONLY); if(fd < 0) { - perror("prepare_service_file: open"); + //perror("prepare_service_file: open"); int status = 500; int en = errno; @@ -83,7 +83,7 @@ /* get stat */ struct stat stat; if (fstat(fd, &stat) != 0) { - perror("prepare_service_file: stat"); + //perror("prepare_service_file: stat"); protocol_status(sn, rq, 500, NULL); return -1; @@ -143,7 +143,7 @@ /* open the file */ int fd = open(ppath, O_RDONLY); if(fd < 0) { - perror("service_index: open"); + //perror("service_index: open"); int status = 500; switch(errno) { @@ -157,14 +157,14 @@ } } protocol_status(sn, rq, status, NULL); - printf("REQ_ABORTED\n"); + //printf("REQ_ABORTED\n"); return REQ_ABORTED; } DIR *dir = fdopendir(fd); if(dir == NULL) { protocol_status(sn, rq, 500, NULL); - printf("DIR is null\n"); + //printf("DIR is null\n"); return REQ_ABORTED; } @@ -206,6 +206,7 @@ /* close */ closedir(dir); + sbuf_free(out); return REQ_PROCEED; }