diff options
Diffstat (limited to 'net-analyzer/sarg/files/sarg-2.2.3.1-rewind.patch')
-rw-r--r-- | net-analyzer/sarg/files/sarg-2.2.3.1-rewind.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net-analyzer/sarg/files/sarg-2.2.3.1-rewind.patch b/net-analyzer/sarg/files/sarg-2.2.3.1-rewind.patch new file mode 100644 index 000000000000..14e5f3e6bbe9 --- /dev/null +++ b/net-analyzer/sarg/files/sarg-2.2.3.1-rewind.patch @@ -0,0 +1,12 @@ +diff -Naur sarg-2.2.2/log.c sarg-2.2.2-new/log.c +--- sarg-2.2.2/log.c 2006-08-29 15:09:32.000000000 +0400 ++++ sarg-2.2.2-new/log.c 2006-09-06 13:37:50.000000000 +0400 +@@ -733,7 +733,7 @@ + getword(val3,arqtt,'_'); + sprintf(period,"%s-%s",val2,val3); + sarglog=1; +- } else lseek(fileno(fp_in), 0, 0); ++ } else rewind(fp_in); + + if(strcmp(ParsedOutputLog, "no") != 0 && !sarglog) { + if(access(ParsedOutputLog,R_OK) != 0) { |