From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 72AF041066 for ; Sun, 13 Feb 2022 00:28:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1C44A68B2AD; Sun, 13 Feb 2022 02:28:26 +0200 (EET) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A68EE68B02B for ; Sun, 13 Feb 2022 02:28:19 +0200 (EET) Received: from cc976dd952578dabee563e248880c159 ([1.136.186.60]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id 21D0SBg5005591 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Sun, 13 Feb 2022 00:28:14 GMT Date: Sun, 13 Feb 2022 11:28:06 +1100 From: Peter Ross To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: <0312e78bbd8d4140ef658f6d1b653dea76cfcafa.1643095757.git.pross@xvid.org> MIME-Version: 1.0 In-Reply-To: <0312e78bbd8d4140ef658f6d1b653dea76cfcafa.1643095757.git.pross@xvid.org> Subject: Re: [FFmpeg-devel] [PATCH] avformat/utils: fix logic error in ff_mkdir_p X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: multipart/mixed; boundary="===============3331874991153820449==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============3331874991153820449== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Th9Ad+H7Bjv6/POi" Content-Disposition: inline --Th9Ad+H7Bjv6/POi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 25, 2022 at 06:30:03PM +1100, Peter Ross wrote: > Fix ticket# 9605 >=20 > Signed-off-by: Peter Ross > --- > libavformat/utils.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/libavformat/utils.c b/libavformat/utils.c > index e643821fc9..1164cebe68 100644 > --- a/libavformat/utils.c > +++ b/libavformat/utils.c > @@ -1135,7 +1135,7 @@ int ff_mkdir_p(const char *path) > } > } > =20 > - if ((*(pos - 1) !=3D '/') || (*(pos - 1) !=3D '\\')) { > + if ((*(pos - 1) !=3D '/') && (*(pos - 1) !=3D '\\')) { > ret =3D mkdir(temp, 0755); > } > =20 > --=20 > 2.34.1 >=20 > -- Peter > (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) i will apply in a couple of days if no one objects. this closes ticket# 9605 (-Wlogical-op) -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --Th9Ad+H7Bjv6/POi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCYghQlgAKCRBnYHnFrEDd a84AAJ9mqxlqNkVEgpdVrvH6dfRr7cJefACeOWiJbP5vzWywcBNriPahc8Qsjdk= =XW7E -----END PGP SIGNATURE----- --Th9Ad+H7Bjv6/POi-- --===============3331874991153820449== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============3331874991153820449==--