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

recursive_get fails on root directory #3

@shevek

Description

@shevek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions