[FFmpeg-devel] [PATCH]Allow opening image files that are only readable by others
nicolas.george at normalesup.org
Sun Nov 11 16:32:40 CET 2012
Le primidi 21 brumaire, an CCXXI, Carl Eugen Hoyos a écrit :
> S_IRGRP is needed for the following:
> --w-r----- 1 root users 196668 Oct 21 19:06 tests/lena.pnm
And something more complex would be needed if ACLs are used. The whole idea
of checking a file before opening it is flawed, but if it must be
implemented, then the correct function to use is access(), since it does
exactly the same tests as open (except it uses the UID instead of the EUID).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel