[FFmpeg-devel] [PATCH] avformat/utils.c fix mkdir always true
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Fri Nov 8 14:07:00 EET 2019
darling.zhong:
> Signed-off-by: darling.zhong <dalingzhong at yeah.net>
> ---
> libavformat/utils.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> mode change 100644 => 100755 libavformat/utils.c
>
>
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> old mode 100644
> new mode 100755
> index 8196442dd1..0917cc81df
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -4869,7 +4869,7 @@ int ff_mkdir_p(const char *path)
> }
> }
>
> - if ((*(pos - 1) != '/') || (*(pos - 1) != '\\')) {
> + if ((*(pos - 1) != '/') && (*(pos - 1) != '\\')) {
> ret = mkdir(temp, 0755);
> }
>
>
Already proposed here: [1] Feel free to address the concern raised by
Michael.
- Andreas
[1]: https://patchwork.ffmpeg.org/patch/15105/
More information about the ffmpeg-devel
mailing list