Changeset 2435


Ignore:
Timestamp:
Sep 28, 2009, 5:55:26 PM (10 years ago)
Author:
bruno
Message:

Improve user management for NetFS cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-cli.c

    r2426 r2435  
    524524            strcpy(bkpinfo->netfs_mount,tmp);
    525525        }
    526         sprintf(tmp, "mount | grep -E \"^%s[/]* .*\" | cut -d' ' -f3",
     526        sprintf(tmp, "mount | grep -E \"^[%s@]*%s[/]* .*\" | cut -d' ' -f3", bkpinfo->netfs_user,
    527527                bkpinfo->netfs_mount);
    528528        strncpy(bkpinfo->isodir,
     
    540540                retval++;
    541541            } 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,
    543543                    bkpinfo->netfs_mount);
    544544                strncpy(bkpinfo->isodir,
     
    551551            }
    552552        }
     553        log_msg(3, "proto = %s", bkpinfo->netfs_proto);
    553554        log_msg(3, "mount = %s", bkpinfo->netfs_mount);
     555        if (bkpinfo->netfs_user) {
     556            log_msg(3, "user = %s", bkpinfo->netfs_user);
     557        }
    554558        log_msg(3, "isodir= %s", bkpinfo->isodir);
    555559    }
Note: See TracChangeset for help on using the changeset viewer.