Menu

'Force rescan' warning (severe bug IMO)

2011-01-30
2013-05-29
  • Chris Kjaer

    Chris Kjaer - 2011-01-30

    Don't set the db_dir option in the configuration file to anything you may want to keep: The -R switch (force rescan) will simply remove everything in the specified directory (by running 'rm -rf').

    I discovered this the hard way - and I am quite happy that I did not use my home directory as 'db_dir'…

    The 'feature' is easy to correct in minidlna.c; the action of the -R switch should be

    snprintf(real_path, sizeof(real_path), "rm -rf %s/files.db %s/art_cache", db_path, db_path);
    system(real_path);
    

    /Chris

     
  • Anonymous

    Anonymous - 2011-03-03

    Eek… That's scary. What version of MiniDLNA are you using?

     

Log in to post a comment.