[Pkg-owncloud-commits] [owncloud-client] 49/159: owncloudcmd: Always trail path with /

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri May 1 13:05:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 9123fac545d2a14c22d659d682553fabc89752cf
Author: Markus Goetz <markus at woboq.com>
Date:   Fri Mar 27 13:15:43 2015 +0100

    owncloudcmd: Always trail path with /
    
    Else the csync code vs the Qt code get confused.
---
 src/cmd/cmd.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/cmd/cmd.cpp b/src/cmd/cmd.cpp
index 3e616a7..0b8636b 100644
--- a/src/cmd/cmd.cpp
+++ b/src/cmd/cmd.cpp
@@ -194,6 +194,9 @@ void parseOptions( const QStringList& app_args, CmdOptions *options )
     if (options->target_url.startsWith("http"))
         options->target_url.replace(0, 4, "owncloud");
     options->source_dir = args.takeLast();
+    if (!options->source_dir.endsWith('/')) {
+        options->source_dir.append('/');
+    }
     if( !QFile::exists( options->source_dir )) {
         std::cerr << "Source dir '" << qPrintable(options->source_dir) << "' does not exist." << std::endl;
         exit(1);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list