Date: Fri, 17 Nov 2017 09:29:26 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r325929 - head/sys/contrib/zstd/programs Message-ID: <201711170929.vAH9TQmI023463@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Fri Nov 17 09:29:26 2017 New Revision: 325929 URL: https://svnweb.freebsd.org/changeset/base/325929 Log: Do not remove the sources when zstd is called as zstdcat Modified: head/sys/contrib/zstd/programs/zstdcli.c Modified: head/sys/contrib/zstd/programs/zstdcli.c ============================================================================== --- head/sys/contrib/zstd/programs/zstdcli.c Fri Nov 17 09:14:18 2017 (r325928) +++ head/sys/contrib/zstd/programs/zstdcli.c Fri Nov 17 09:29:26 2017 (r325929) @@ -421,7 +421,7 @@ int main(int argCount, const char* argv[]) /* preset behaviors */ if (exeNameMatch(programName, ZSTD_ZSTDMT)) nbThreads=0; if (exeNameMatch(programName, ZSTD_UNZSTD)) operation=zom_decompress; - if (exeNameMatch(programName, ZSTD_CAT)) { operation=zom_decompress; forceStdout=1; FIO_overwriteMode(); outFileName=stdoutmark; g_displayLevel=1; } + if (exeNameMatch(programName, ZSTD_CAT)) { operation=zom_decompress; forceStdout=1; FIO_overwriteMode(); outFileName=stdoutmark; g_displayLevel=1; g_removeSrcFile=0; } if (exeNameMatch(programName, ZSTD_GZ)) { suffix = GZ_EXTENSION; FIO_setCompressionType(FIO_gzipCompression); FIO_setRemoveSrcFile(1); } /* behave like gzip */ if (exeNameMatch(programName, ZSTD_GUNZIP)) { operation=zom_decompress; FIO_setRemoveSrcFile(1); } /* behave like gunzip */ if (exeNameMatch(programName, ZSTD_GZCAT)) { operation=zom_decompress; forceStdout=1; FIO_overwriteMode(); outFileName=stdoutmark; g_displayLevel=1; } /* behave like gzcat */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711170929.vAH9TQmI023463>