Message ID | 75ccdacb.efed7.16e4919ec1e.Coremail.dalingzhong@yeah.net |
---|---|
State | New |
Headers | show |
darling.zhong: > Signed-off-by: darling.zhong <dalingzhong@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/
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); }
Signed-off-by: darling.zhong <dalingzhong@yeah.net> --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 libavformat/utils.c