Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2014 19:40:20 -0800
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/185648: fmtree is unnecessarily noisy
Message-ID:  <E978F949-E613-4B7C-AF50-221F7C24A9A3@gmail.com>
In-Reply-To: <201401102200.s0AM01qp093493@freefall.freebsd.org>
References:  <201401102200.s0AM01qp093493@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_3E02B388-8DD9-411B-AFF7-1ECBB3FD872E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

	Doing some code inspection, the noise is benign but not human =
friendly. This patch should make it a little more human-friendly.
Thanks,
-Garrett

--Apple-Mail=_3E02B388-8DD9-411B-AFF7-1ECBB3FD872E
Content-Disposition: attachment;
	filename=0001-make-the-message-when-EEXIST-occurs-with-mkdir-2-mor.patch
Content-Type: application/octet-stream;
	name="0001-make-the-message-when-EEXIST-occurs-with-mkdir-2-mor.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=20a3e0cf67fab89883913fe516907ab0af7883164e=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Garrett=20Cooper=20<yanegomi@gmail.com>=0A=
Date:=20Mon,=2013=20Jan=202014=2009:48:27=20-0800=0ASubject:=20[PATCH]=20=
make=20the=20message=20when=20EEXIST=20occurs=20with=20mkdir(2)=20more=0A=
=20meaningful=0A=0A---=0A=20usr.sbin/mtree/verify.c=20|=207=20+++++--=0A=20=
1=20file=20changed,=205=20insertions(+),=202=20deletions(-)=0A=0Adiff=20=
--git=20a/usr.sbin/mtree/verify.c=20b/usr.sbin/mtree/verify.c=0Aindex=20=
b7c4fd9..f708846=20100644=0A---=20a/usr.sbin/mtree/verify.c=0A+++=20=
b/usr.sbin/mtree/verify.c=0A@@=20-218,8=20+218,11=20@@=20miss(NODE=20*p,=20=
char=20*tail)=0A=20=09=09=09}=20else=20if=20(!(p->flags=20&=20F_MODE))=0A=
=20=09=09=09=20=20=20=20(void)printf("=20(directory=20not=20created:=20=
mode=20not=20specified)");=0A=20=09=09=09else=20if=20(mkdir(path,=20=
S_IRWXU))=0A-=09=09=09=09(void)printf("=20(directory=20not=20created:=20=
%s)",=0A-=09=09=09=09=20=20=20=20strerror(errno));=0A+=09=09=09=09if=20=
(errno=20=3D=3D=20EEXIST)=0A+=09=09=09=09=09(void)printf("=20(path=20=
already=20exists)");=0A+=09=09=09=09else=0A+=09=09=09=09=09=
(void)printf("=20(directory=20not=20created:=20%s)",=0A+=09=09=09=09=09=20=
=20=20=20strerror(errno));=0A=20=09=09=09else=20{=0A=20=09=09=09=09=
create=20=3D=201;=0A=20=09=09=09=09(void)printf("=20(created)");=0A--=20=0A=
1.8.4.1=0A=0A=

--Apple-Mail=_3E02B388-8DD9-411B-AFF7-1ECBB3FD872E--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E978F949-E613-4B7C-AF50-221F7C24A9A3>