Get rid of our reimplementation of basename

The only problem is that libgen.h #defines basename to point to it's
own broken implementation instead of the GNU one. This can be fixed
by #undefining basename.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-12-06 21:29:55 -05:00
parent f433609894
commit 2b6bf07dd2
22 changed files with 55 additions and 66 deletions
+1 -1
View File
@@ -1096,7 +1096,7 @@ int main(int argc, char *argv[]) {
path_kill_slashes(arg_directory);
if (!arg_machine) {
arg_machine = strdup(path_get_file_name(arg_directory));
arg_machine = strdup(basename(arg_directory));
if (!arg_machine) {
log_oom();
goto finish;