From aeb215184fb41711de66b14735a2cc98543a3fe6 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 30 Apr 2007 17:00:43 +0000 Subject: [PATCH] Also quote the quoted string characters. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20928 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/fs_shell_command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/fs_shell/fs_shell_command.cpp b/src/tools/fs_shell/fs_shell_command.cpp index c6f7981d5a..297dacfa59 100644 --- a/src/tools/fs_shell/fs_shell_command.cpp +++ b/src/tools/fs_shell/fs_shell_command.cpp @@ -35,7 +35,7 @@ prepare_command_string(const char *const *argv, int argc, char *buffer, add_char(buffer, bufferSize, ' '); while (*arg) { - if (strchr(" \\", *arg)) + if (strchr(" \"'\\", *arg)) add_char(buffer, bufferSize, '\\'); add_char(buffer, bufferSize, *arg); arg++;