From: Frederic Marchal Date: Thu, 12 Nov 2015 14:26:36 +0000 (+0100) Subject: Update the comment of the split function X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6eb9e0908979d0931bfc5e9542154dd592dd41fb;p=thirdparty%2Fsarg.git Update the comment of the split function The split function documentation was still describing the function that used an external program to uncompress log files. There is no need to document the changes in the function documentation as that information is available in git. --- diff --git a/decomp.c b/decomp.c index 5689d76..93d5de2 100644 --- a/decomp.c +++ b/decomp.c @@ -279,23 +279,14 @@ static FileObject *Bzip_Open(int fd) /*! -Open the log file. If it is compressed, uncompress it through a pipe. +Open the log file. If it is compressed, uncompress it with the proper library. -Log files compressed with gzip, bzip2 or compress are uncompressed with zcat or bzcat. +Log files compressed with gzip, bzip2 can be uncompressed if sarg is compiled with +the proper library. If the log file does not exist, the process terminates with an error message. \param arq The log file to process. -\param pipe A variable set to \c true if the log file is opened through a pipe or set to \c false if the file is open directly. - -\date 2009-09-24 - F Marchal\n This function used to uncompress .Z files in -place using uncompress but that required a write access to the log directory, -could conflict with logrotate and could leave the log file uncompressed if sarg -crashed. According to the documentation, zcat is capable of uncompressing .Z -files so it is now used. - -\date 2010-05-10 - F Marchal\n -The function doesn't use a temporary file any more and read the compressed file through a pipe. */ FileObject *decomp(const char *arq) {