Changeset 2547 in MondoRescue
- Timestamp:
- Jan 21, 2010, 9:11:14 PM (15 years ago)
- Location:
- branches/2.2.9/mondo/src/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-files-EXT.h
r2380 r2547 48 48 extern int make_grub_install_scriptlet(char *outfile); 49 49 extern int read_one_liner_data_file(char *fname, char *contents); 50 extern int mode_of_file(char *fname); -
branches/2.2.9/mondo/src/common/libmondo-files.c
r2380 r2547 1334 1334 1335 1335 1336 int mode_of_file(char *fname)1337 {1338 struct stat buf;1339 1340 if (lstat(fname, &buf)) {1341 return (-1);1342 } // error1343 else {1344 return (buf.st_mode);1345 }1346 }1347 1348 1349 1350 1351 1336 /** 1352 1337 * Create a small script that mounts /boot, calls @c grub-install, and syncs the disks. -
branches/2.2.9/mondo/src/common/libmondo-files.h
r2380 r2547 49 49 50 50 int read_one_liner_data_file(char *fname, char *contents); 51 int mode_of_file(char *fname);
Note:
See TracChangeset
for help on using the changeset viewer.