sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Jan Stary <hans@stare.cz>
To: sox-users@lists.sourceforge.net
Subject: Re: 14.4.2rc2 segfaults on remote OGGs
Date: Thu, 12 Feb 2015 09:14:04 +0100	[thread overview]
Message-ID: <20150212081404.GA22968@www.stare.cz> (raw)
In-Reply-To: <20150212074256.GA24415@www.stare.cz>

> The OpenBSD port of SoX that uses ftp instead of wget; however,
> this is `vanilla' SoX as distributed in the 14.4.2rc2 tarball.

I mean, the source code gets patched when building the OpenBSD port
(see diff below); it's not like ./configure picks ftp(1) on systems
that have it.

	Jan


$OpenBSD: patch-src_formats_c,v 1.5 2014/12/24 12:31:23 sthen Exp $
--- src/formats.c.orig	Sun Jan 13 19:57:39 2013
+++ src/formats.c	Wed Dec 24 12:30:53 2014
@@ -349,7 +349,7 @@ static int sox_checkformat(sox_format_t * ft)
   return SOX_SUCCESS;
 }
 
-static sox_bool is_url(char const * text) /* detects only wget-supported URLs */
+static sox_bool is_url(char const * text)
 {
   return !(
       strncasecmp(text, "http:" , (size_t)5) &&
@@ -386,7 +386,7 @@ static FILE * xfopen(char const * identifier, char con
   else if (is_url(identifier)) {
     FILE * f = NULL;
 #ifdef HAVE_POPEN
-    char const * const command_format = "wget --no-check-certificate -q -O- \"%s\"";
+    char const * const command_format = "ftp -a -V -o - \"%s\"";
     char * command = lsx_malloc(strlen(command_format) + strlen(identifier));
     sprintf(command, command_format, identifier);
     f = popen(command, POPEN_MODE);

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/

  reply	other threads:[~2015-02-12  8:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-10 20:38 14.4.2rc2 segfaults on remote OGGs Jan Stary
2015-02-12  4:31 ` Eric Wong
2015-02-12  7:42   ` Jan Stary
2015-02-12  8:14     ` Jan Stary [this message]
2015-02-13 22:06     ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150212081404.GA22968@www.stare.cz \
    --to=sox-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).