Ignore:
Timestamp:
Mar 7, 2024, 11:43:20 AM (3 months ago)
Author:
Bruno Cornec
Message:

Remove useless find_pathname_of_executable_preferably_in_RESTORING

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/mondorestore/mondorestore.c

    r3854 r3862  
    23512351
    23522352/**
    2353  * Locate an executable in the directory structure rooted at @p restg.
    2354  * @param out_path Where to put the executable.
    2355  * @param fname The basename of the executable.
    2356  * @param restg The directory structure to look in.
    2357  * @note If it could not be found in @p restg then @p fname is put in @p out_path.
    2358  * @ingroup restoreUtilityGroup
    2359  */
    2360 void
    2361 find_pathname_of_executable_preferably_in_RESTORING(char *out_path,
    2362                                                     char *fname,
    2363                                                     char *restg)
    2364 {
    2365     assert(out_path != NULL);
    2366     assert_string_is_neither_NULL_nor_zerolength(fname);
    2367 
    2368     sprintf(out_path, "%s/sbin/%s", restg, fname);
    2369     if (does_file_exist(out_path)) {
    2370         sprintf(out_path, "%s/usr/sbin/%s", restg, fname);
    2371         if (does_file_exist(out_path)) {
    2372             sprintf(out_path, "%s/bin/%s", restg, fname);
    2373             if (does_file_exist(out_path)) {
    2374                 sprintf(out_path, "%s/usr/bin/%s", restg, fname);
    2375                 if (does_file_exist(out_path)) {
    2376                     strcpy(out_path, fname);
    2377                 }
    2378             }
    2379         }
    2380     }
    2381 }
    2382 
    2383 /**************************************************************************
    2384  *END_FIND_PATHNAME_OF_EXECUTABLE_PREFERABLY_IN_RESTORING                 *
    2385  **************************************************************************/
    2386 
    2387 
    2388 /**
    23892353 * Run an arbitrary restore mode (prompt the user), but from ISO images
    23902354 * instead of real media.
Note: See TracChangeset for help on using the changeset viewer.