There is no need to explicitly call basename() to construct an image
name in imgfetch_core_exec(), since image_set_uri() will do so
automatically anyway (and will do so without getting confused by URIs
with query strings).
Signed-off-by: Michael Brown <mcb30@ipxe.org>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
-#include <libgen.h>
#include <getopt.h>
#include <ipxe/image.h>
#include <ipxe/command.h>
/* Parse URI string */
uri_string = argv[optind];
- if ( ! opts.name )
- opts.name = basename ( uri_string );
/* Parse command line */
if ( argv[ optind + 1 ] != NULL ) {