• Kristofer Pettersson's avatar
    Bug#50373 --secure-file-priv="" · 2a37d531
    Kristofer Pettersson authored
    The server variable opt_secure_file_priv wasn't
    normalized properly and caused the operations
    LOAD DATA INFILE .. INTO TABLE ..
    and
    SELECT load_file(..)
    to do different interpretations of the 
    --secure-file-priv option.
    
    The patch moves code to the server initialization
    routines so that the path always is normalized
    once and only once.
    
    It was also intended that setting the option
    to an empty string should be equal to 
    lifting all previously set restrictions. This
    is also fixed by this patch.
    2a37d531
secure_file_priv.result 295 Bytes