https://github.com/akrennmair/newsbeuter/commit/26f5a4350f3ab5507bb8727051c87bb04660f333.patch http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14500 From 26f5a4350f3ab5507bb8727051c87bb04660f333 Mon Sep 17 00:00:00 2001 From: Alexander Batischev Date: Sat, 16 Sep 2017 19:31:43 +0300 Subject: [PATCH] Work around shell code in podcast names (#598) --- src/pb_controller.cpp | 6 +++--- src/queueloader.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pb_controller.cpp b/src/pb_controller.cpp index 09b5e897..213216cd 100644 --- a/src/pb_controller.cpp +++ b/src/pb_controller.cpp @@ -306,9 +306,9 @@ void pb_controller::play_file(const std::string& file) { if (player == "") return; cmdline.append(player); - cmdline.append(" \""); - cmdline.append(utils::replace_all(file,"\"", "\\\"")); - cmdline.append("\""); + cmdline.append(" \'"); + cmdline.append(utils::replace_all(file,"'", "%27")); + cmdline.append("\'"); stfl::reset(); LOG(LOG_DEBUG, "pb_controller::play_file: running `%s'", cmdline.c_str()); ::system(cmdline.c_str()); diff --git a/src/queueloader.cpp b/src/queueloader.cpp index c1dabdd8..ae725e04 100644 --- a/src/queueloader.cpp +++ b/src/queueloader.cpp @@ -130,7 +130,7 @@ std::string queueloader::get_filename(const std::string& str) { strftime(lbuf, sizeof(lbuf), "%Y-%b-%d-%H%M%S.unknown", localtime(&t)); fn.append(lbuf); } else { - fn.append(base); + fn.append(utils::replace_all(base, "'", "%27")); } return fn; } m class='right' method='get' action='/guix/log/etc/openrc'>
path: root/etc/openrc
AgeCommit message (Collapse)Author
2021-07-07guix-install.sh: Prompt for configuring substitutes discovery.Maxim Cournoyer
Also ensure prompt_yes_no always print the message with a trailing space, which is more pleasing to the eye. * etc/guix-daemon.conf.in <--discover=no>: New guix-daemon option. * etc/guix-daemon.service.in: Likewise. * etc/init.d/guix-daemon.in: Likewise. * etc/openrc/guix-daemon.in: Likewise. * etc/guix-install.sh (configure_substitute_discovery): New procedure. (sys_enable_guix_daemon): Ask the user whether automatic substitute discovery should be enabled. Set the '--discover' argument accordingly. (prompt_yes_no): Add a trailing space to the message. (sys_authorize_build_farms): Remove trailing space from the message argument. * NEWS (Distribution): Add news.
2020-09-17guix-install.sh: Support OpenRC.Morgan Smith
* etc/guix-install.sh (chk_init_sys): Detect OpenRC. (sys_enable_guix_daemon): Install & enable the Guix daemon on such systems. * etc/openrc/guix-daemon.in: New file. * nix/local.mk: Add a rule for it. (openrcservicedir, nodist_openrcservice_DATA): New variables. (CLEANFILES, EXTRA_DIST): Add them. * .gitignore: Ignore etc/openrc/guix-daemon. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>