Fix tilde expansion of paths with no user like ~/foo.
The '/' separator was missing in the resulting path.
This commit is contained in:
@@ -42,7 +42,9 @@ struct test_data {
|
||||
{ "foo/bar", NULL, NULL, false },
|
||||
{ "~root", "/", NULL, true },
|
||||
{ "~", "/home/millert", "millert", true },
|
||||
{ "~/foo", "/home/millert/foo", "millert", true },
|
||||
{ "~millert", "/home/millert", "millert", true },
|
||||
{ "~millert/bar", "/home/millert/bar", "millert", true },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user