Skip to content

Commit

Permalink
Merge pull request #18 from mariux64/allow-empty-host
Browse files Browse the repository at this point in the history
cmirror: Allow explicit empty host
  • Loading branch information
donald authored Oct 9, 2023
2 parents 3ba77c4 + 5c21710 commit 249d2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmirror.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ static void master(char *master_path, char *target) {
LOCAL_DEV = g_hash_table_new_full(g_int64_hash, g_int64_equal, g_free, NULL);

{
g_auto(GStrv) match1 = MATCH_RE("^([^:]+):(.+)$", target); // system:/path
g_auto(GStrv) match1 = MATCH_RE("^([^:]*):(.+)$", target); // system:/path
if (match1) {
slave_path = STEAL_POINTER(&(match1[2]));
g_auto(GStrv) match2 = MATCH_RE("^([^@]+)@(.+)$", match1[1]); // user@system
Expand Down

0 comments on commit 249d2af

Please sign in to comment.