libdevmapper logging not properly initialized

Bug #1616902 reported by Liang Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
multipath-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

        dm_init();
        if (getuid() != 0) {
                fprintf(stderr, "need to be root\n");
                exit(1);
        }
        /* make sure we don't lock any path */
        chdir("/");
        umask(umask(077) | 022);
        conf = alloc_config();

dm_init is called before allocating conf. But dm_init depends on conf->verbosity to initialize libdevmapper logging. In the current situation, the verbosity is always set to 0 because conf is 0.

extern void
dm_init(void) {
        dm_log_init(&dm_write_log);
        dm_log_init_verbose(conf ? conf->verbosity + 3 : 0);
}

Revision history for this message
Liang Chen (cbjchen) wrote :

OK. This has been fixed in multipat-tools upstream repo.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.