[FFmpeg-devel] [PATCH]Allow opening image files that are only readable by others

Nicolas George 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).


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121111/f81b01bc/attachment.asc>

More information about the ffmpeg-devel mailing list