cgls: add --machine/-M

cg_get_machine_path is modified to include the escaped machine name
+ ".nspawn" if the machine argument is nonnull.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-05-01 10:15:25 -04:00
parent 57277cbe40
commit 38158b920e
8 changed files with 63 additions and 46 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ static void test_get_paths(void) {
assert_se(cg_get_user_path(&c) >= 0);
log_info("User = %s", c);
assert_se(cg_get_machine_path(&d) >= 0);
assert_se(cg_get_machine_path("harley", &d) >= 0);
log_info("Machine = %s", d);
}