[rtmpdump] rtmpsuck duplicate filename patch

Ralph Spitzner rasp at spitzner.org
Mon Apr 2 17:19:54 CEST 2012


Andy Goth wrote:
[...]
> I suppose I could also try opening the file for reading. If that
> succeeds, I know the file exists, so I should pick a different name.
> That should be portable, also more efficient than scanning the whole
> directory looking for a particular name. If the file exists but isn't
> readable due to permissions, fopen() for read will fail, but fopen() for
> write will fail too, and (this is current behavior) rtmpsuck will abort.

Can't see any permission issues here, since you are the same UID/GID...

	-rasp



More information about the rtmpdump mailing list