Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

recursive_get fails on root directory #3

Open
shevek opened this issue Mar 30, 2014 · 0 comments
Open

recursive_get fails on root directory #3

shevek opened this issue Mar 30, 2014 · 0 comments

Comments

@shevek
Copy link

shevek commented Mar 30, 2014

1120 static int recursive_get(char * path)
1121 {
1122 char * dirc = strdup(path);
1123 char * base = basename(path);
1124 char * dir = dirname(dirc);

This gives "/" in both base and dir (man 3 basename) which causes paths like "///Foo" to be passed to the server, which fails.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant