• Kristofer Pettersson's avatar
    Bug#50373 --secure-file-priv="" · 5b6ebdf0
    Kristofer Pettersson authored
    Iterative patch improvement. Previously committed patch
    caused wrong result on Windows. The previous patch also
    broke secure_file_priv for symlinks since not all file
    paths which must be compared against this variable are
    normalized using the same norm.
    
    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.
    5b6ebdf0
loaddata.result 15.8 KB