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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user