Changeset 3279 in MondoRescue
- Timestamp:
- Apr 30, 2014, 1:05:17 PM (11 years ago)
- Location:
- branches/3.2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/rootfs/etc/init.d/rcS
r3278 r3279 877 877 # Creates log file 878 878 LogIt "" 879 # Backup fd 880 exec 4>&2 5>&1 879 881 # Redirect every message to the LOGFILE 880 882 exec > >(tee -a ${LOGFILE}) -
branches/3.2/mindi/rootfs/usr/sbin/post-init
r3271 r3279 4 4 # 5 5 #------------------------------------------------------------ 6 7 8 sleep 19 6 10 7 if [ -f "/tmp/mountlist.txt" ]; then … … 70 67 fi 71 68 69 # Now suppress msg redirection to avoid poluting log file 70 exec 2>&4 >&5 4>&- 5>&- 71 72 72 if [ "$compare" ] ; then 73 73 LogIt "------------------COMPARE MODE-----------------" 1 -
branches/3.2/mindi/rootfs/usr/sbin/start-netfs
r3278 r3279 117 117 elif [ "$proto" = "smbfs" ]; then 118 118 LogIt "Mounting SMBFS share ($netfsmount) on /tmp/isodir..." 119 mount -t cifs $netfs opt $netfsmount /tmp/isodir -o ro119 mount -t cifs $netfsmount /tmp/isodir -o ro $netfsopt 120 120 elif [ "$proto" != "" ]; then 121 121 if [ -x /sbin/rpcbind ]; then -
branches/3.2/mondo/src/common/libmondo-mountlist.c
r3263 r3279 556 556 drivelist = malloc(sizeof(struct list_of_disks)); 557 557 assert(mountlist != NULL); 558 mr_asprintf(flaws_str, "%s", "");559 558 560 559 make_list_of_drives_in_mountlist(mountlist, drivelist); … … 573 572 if (tmp != NULL) { 574 573 log_msg(8,"Adding: %s to flaws_str", tmp); 575 mr_strcat(flaws_str, "%s", tmp); 574 if (flaws_str != NULL) { 575 mr_strcat(flaws_str, "%s", tmp); 576 } else { 577 mr_asprintf(flaws_str, "%s", tmp); 578 } 576 579 mr_free(tmp); 577 580 } … … 591 594 if (copies > 1 && last_copy == currline && strcmp(curr_mountpoint, "raid")) { 592 595 mr_asprintf(tmp, " %s %s's.", number_to_text(copies), curr_mountpoint); 593 mr_strcat(flaws_str, "%s", tmp);594 596 log_msg(8,"Adding: %s to flaws_str", tmp); 597 if (flaws_str != NULL) { 598 mr_strcat(flaws_str, "%s", tmp); 599 } else { 600 mr_asprintf(flaws_str, "%s", tmp); 601 } 595 602 mr_free(tmp); 596 603 } 597 604 mr_free(curr_mountpoint); 598 605 } 599 600 606 return(flaws_str); 601 607 }
Note:
See TracChangeset
for help on using the changeset viewer.