[Development] [QLockFile] Whether it is reasonable to use 0644 permission ?

Thiago Macieira thiago.macieira at intel.com
Wed Jul 27 17:45:58 CEST 2016

On quarta-feira, 27 de julho de 2016 11:37:51 PDT Oswald Buddenhagen wrote:
> also, isn't this actually mostly about the permissions of the directory
> containing the locks? lock grabbing should be mostly about deleting and
> re-creating the file.

That's also a good point. If you have permission to delete the stale lock, 
problem solved.

If you don't have permission to delete it, then you're going to have a problem 
to drop your own lock if you steal the lock by writing to the file.

Either way, the mode in the call should be 0666.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list