Changeset 2435 in MondoRescue
- Timestamp:
- Sep 28, 2009, 5:55:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-cli.c
r2426 r2435 524 524 strcpy(bkpinfo->netfs_mount,tmp); 525 525 } 526 sprintf(tmp, "mount | grep -E \"^ %s[/]* .*\" | cut -d' ' -f3",526 sprintf(tmp, "mount | grep -E \"^[%s@]*%s[/]* .*\" | cut -d' ' -f3", bkpinfo->netfs_user, 527 527 bkpinfo->netfs_mount); 528 528 strncpy(bkpinfo->isodir, … … 540 540 retval++; 541 541 } else { 542 sprintf(tmp, "mount | grep -E \"^ %s[/]* .*\" | cut -d' ' -f3",542 sprintf(tmp, "mount | grep -E \"^[%s@]*%s[/]* .*\" | cut -d' ' -f3", bkpinfo->netfs_user, 543 543 bkpinfo->netfs_mount); 544 544 strncpy(bkpinfo->isodir, … … 551 551 } 552 552 } 553 log_msg(3, "proto = %s", bkpinfo->netfs_proto); 553 554 log_msg(3, "mount = %s", bkpinfo->netfs_mount); 555 if (bkpinfo->netfs_user) { 556 log_msg(3, "user = %s", bkpinfo->netfs_user); 557 } 554 558 log_msg(3, "isodir= %s", bkpinfo->isodir); 555 559 }
Note:
See TracChangeset
for help on using the changeset viewer.