• Nisha Gopalakrishnan's avatar
    BUG#17324415:GETTING MYSQLD --HELP AS ROOT EXITS WITH 1 · 1ef8ed17
    Nisha Gopalakrishnan authored
    Analysis
    --------
    
    Running 'MYSQLD --help --verbose' as ROOT user without
    using '--user' option displays the help contents but
    aborts at the end with an exit code '1'.
    
    While starting the server, a validation is performed to
    ensure when the server is started as root user, it should
    be done using '--user' option. Else we abort. In case
    of help, we dump the help contents and abort.
    
    Fix:
    ---
    During the validation, we skip aborting the server incase
    we are using the help option under the condition mentioned
    above.
    
    NOTE: Test case has not been added since it requires using 
          'root' user.
    1ef8ed17
mysqld.cc 263 KB