Skip to content

cmirror: Allow explicit empty host #18

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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