Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2017 10:59:30 -0800
From:      Conrad Meyer <cem@freebsd.org>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r325930 - head/sys/contrib/zstd/programs
Message-ID:  <CAG6CVpX0VDzKVkKzcVJ%2B7s0uB-WMijrkpax5y72Qn=7=KK8YcQ@mail.gmail.com>
In-Reply-To: <201711170933.vAH9XTsl027533@repo.freebsd.org>
References:  <201711170933.vAH9XTsl027533@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Bapt,

I don't think this is a sufficient fix.  Our zstd is still deleting
source files, differing from upstream for no reason.

Best,
Conrad

On Fri, Nov 17, 2017 at 1:33 AM, Baptiste Daroussin <bapt@freebsd.org> wrote:
> Author: bapt
> Date: Fri Nov 17 09:33:29 2017
> New Revision: 325930
> URL: https://svnweb.freebsd.org/changeset/base/325930
>
> Log:
>   Actually commit the right patch for r325929
>
> 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:29:26 2017        (r325929)
> +++ head/sys/contrib/zstd/programs/zstdcli.c    Fri Nov 17 09:33:29 2017        (r325930)
> @@ -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; g_removeSrcFile=0; }
> +    if (exeNameMatch(programName, ZSTD_CAT)) { operation=zom_decompress; forceStdout=1; FIO_overwriteMode(); outFileName=stdoutmark; g_displayLevel=1; FIO_setRemoveSrcFile(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?CAG6CVpX0VDzKVkKzcVJ%2B7s0uB-WMijrkpax5y72Qn=7=KK8YcQ>