Changeset 3862 in MondoRescue for branches/3.3/mondo/src/mondorestore
- Timestamp:
- Mar 7, 2024, 11:43:20 AM (14 months ago)
- Location:
- branches/3.3/mondo/src/mondorestore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/mondorestore/mondorestore-EXT.h
r3790 r3862 24 24 struct raidlist_itself *); 25 25 extern void sort_mountlist_by_device(struct mountlist_itself *); 26 extern void find_pathname_of_executable_preferably_in_RESTORING(char *,27 char *,28 char *);29 26 extern int interactive_mode(struct mountlist_itself *, 30 27 struct raidlist_itself *); -
branches/3.3/mondo/src/mondorestore/mondorestore.c
r3854 r3862 2351 2351 2352 2352 /** 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 restoreUtilityGroup2359 */2360 void2361 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 /**2389 2353 * Run an arbitrary restore mode (prompt the user), but from ISO images 2390 2354 * instead of real media.
Note:
See TracChangeset
for help on using the changeset viewer.