From nobody Mon Oct 13 18:15:47 2025 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cllsR5ZbGz6C8JY; Mon, 13 Oct 2025 18:16:11 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2620:137:6000:10::142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "prime.gushi.org", Issuer "E7" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cllsR2SS6z47rc; Mon, 13 Oct 2025 18:16:11 +0000 (UTC) (envelope-from freebsd@gushi.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple ([IPv6:2601:602:580:f8ad:a8f5:cca7:1dd0:c0b2]) (authenticated bits=0) by prime.gushi.org (8.18.1/8.18.1) with ESMTPSA id 59DIG2gK010726 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Oct 2025 18:16:03 GMT (envelope-from freebsd@gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 59DIG2gK010726 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1760379363; bh=fVx/bwsskRUim/ssWj8TweQSFeN5GrerI6j2hxmnc5w=; h=From:Subject:Date:In-Reply-To:Cc:To:References; z=From:=20"Dan=20Mahoney=20(Ports)"=20|Subject:= 20Re:=20openat("./...",=20O_CREAT)=20fails=20even=20though=20the=2 0directory=20exists|Date:=20Mon,=2013=20Oct=202025=2011:15:47=20-0 700|In-Reply-To:=20|Cc:=20Olivier=20Certner=20,=0D=0A=20fs@freebsd.org,=0D=0A=20current@freebsd.org|To:=20Adri an=20Chadd=20|References:=20=20<2507674.THHZn3L5Ee@ravel>=0D=0A=20=20<6142242.Zv9zXsTiuT@ravel>=0D=0 A=20=0D=0A=20; b=hA2M/mt2k4n4ondc6l0brqlX9a1sVKYGmM+76W44I9MKZeIpL0LfZBobihn4/fz0V WCcdiYZuN822aeGVU9ifaSIVbSu3OlpBb2vXZ4uDZonYjHsEa5JacT5XVLXvz6ZlHi AzQSM1b4kApBL7OTTbUsBtHYPV2QGdq+VoVTeASXdykT97HqbNINVNGfFVQsYKQl7V XzuGtdq49mnXqGndYXudUJfjGBkszPrHcCERdi5d+4p5e+Q4oMGjA7uBCqH1Y5dwZc QM4/lH8dS9I3tKDTimoEqpOd7yoo99ieVgtCRDhpCSxfWevFuncjomS3lRVXrsTmAC HHsRhPhm4lsSg== X-Authentication-Warning: prime.gushi.org: Host [IPv6:2601:602:580:f8ad:a8f5:cca7:1dd0:c0b2] claimed to be smtpclient.apple From: "Dan Mahoney (Ports)" Message-Id: <411C1A2F-96BF-41F2-88D4-FC6B8C45D23F@gushi.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_04F21C61-3B8D-4641-8AFE-B77132760695" List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.100.1.1.5\)) Subject: Re: openat("./...", O_CREAT) fails even though the directory exists Date: Mon, 13 Oct 2025 11:15:47 -0700 In-Reply-To: Cc: Olivier Certner , fs@freebsd.org, current@freebsd.org To: Adrian Chadd References: <2507674.THHZn3L5Ee@ravel> <6142242.Zv9zXsTiuT@ravel> X-Mailer: Apple Mail (2.3864.100.1.1.5) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (prime.gushi.org [IPv6:2620:137:6000:10:0:0:0:142]); Mon, 13 Oct 2025 18:16:03 +0000 (UTC) X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:393507, ipnet:2620:137:6000::/44, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cllsR2SS6z47rc --Apple-Mail=_04F21C61-3B8D-4641-8AFE-B77132760695 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 13, 2025, at 11:06=E2=80=AFAM, Adrian Chadd = wrote: >=20 > ... >=20 > On Mon, 13 Oct 2025 at 03:23, Lexi Winter > wrote: >> Olivier Certner wrote in <6142242.Zv9zXsTiuT@ravel>: >> > > i suspect the fix will be in pkgbase somewhere: for example, we >> > > could restart sendmail on upgrade, or tell the user to do that. >> >=20 >> > Most probably it will need too, yes. >>=20 >> proposed fix at https://reviews.freebsd.org/D53061. i really don't = like >> this (nothing else restarts services on upgrade) but this is probably = the >> least disruptive solution for users. >=20 > I'm curious - why are we NOT restarting services after an upgraded = package? I mean, I've seen freebsd-update restart sshd regularly. There's = precedent for this. As a regular user, this wouldn't break my = expectations if there was a good reason. -Dan --Apple-Mail=_04F21C61-3B8D-4641-8AFE-B77132760695 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Oct 13, 2025, at 11:06=E2=80=AFAM, Adrian Chadd = <adrian@freebsd.org> wrote:

...

On Mon, 13 = Oct 2025 at 03:23, Lexi Winter <ivy@freebsd.org> = wrote:
Olivier Certner wrote in = <6142242.Zv9zXsTiuT@ravel>:
> > i suspect the fix will be in pkgbase somewhere: for example, = we
> > could restart sendmail on upgrade, or tell the user to do = that.
>
> Most probably it will need too, yes.

proposed fix at https://reviews.freebsd.org/D53061.  i really = don't like
this (nothing else restarts services on upgrade) but this is probably = the
least disruptive solution for = users.

I'm curious - why are we NOT = restarting services after an upgraded = package?

I mean, I've = seen freebsd-update restart sshd regularly.  There's precedent for = this.  As a regular user, this wouldn't break my expectations if = there was a good = reason.

-Dan

= --Apple-Mail=_04F21C61-3B8D-4641-8AFE-B77132760695--