c2dfa81 Fix lockfile() to use the given "dir" argument

1 file Authored by nsoffer 6 years ago, Committed by teigland 6 years ago,
    Fix lockfile() to use the given "dir" argument
    
    lockfile() was using SANLK_RUN_DIR for creating the run directory, and
    the dir argument for building the lockfile path. Use only dir so we can
    create a lockfile in another directory. This will be useful for running
    sanlock as non-privileged user during the tests.
    
    Signed-off-by: Nir Soffer <nsoffer@redhat.com>
    
        
file modified
+3 -4