From nobody Mon Oct 13 08:32:45 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 4clVwQ5NlHz6CBFr; Mon, 13 Oct 2025 08:32:54 +0000 (UTC) (envelope-from ivy@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4clVwQ4gDWz3cbQ; Mon, 13 Oct 2025 08:32:54 +0000 (UTC) (envelope-from ivy@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760344374; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=UBjn6yxzRZSTX9od0FW91e6CgmsWYr9+qZno4is+gpQ=; b=h5zL4Is7lAeVKhqxVwZCo+FuB+M7iwnFFOHAy2gZl7AH04+IRY94XRVdoHBEJuBc32Gs6t sOD2wELwbqZOY7KIpgi1nrLUFyZr6YQHUVQrb7w+r2eYgRnTGak5CEqfpnZDBAlfEMBCAE YDYmrtEqpnyydUZ1vi9WvEVBq1PYU93yhXtJj65G692asoIH39YHyHC87HYF/5Iy5xQ4/P ux6EQSCEyXXcgrkPhYln3FEyKXAA3uI67EdI49bjrcPJ23MoSOPJ8mmRkafRFyuufIU6rS ziCeTdkDw40FnjqAZl/rfhGpOL/sKxBglMWGOD9UMi6wOVjlPT5UFJ9v7gTkcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760344374; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=UBjn6yxzRZSTX9od0FW91e6CgmsWYr9+qZno4is+gpQ=; b=CuIY/QHWmCEfiQVJULv6vLUEaNyc+2D3QCODJYmCnOXnPHEpXYBB0nCmT73oY1glhWYL/k nvrOs0S81iEBh2JSB83zlMXDYx0lm36AWwkamFxuomUpx+DgXPvnvGqlqg0/aJ+JG8c4Na ZHDvGXUpzbUgd7yQgMLdgK1JynZy5Ufa0EcKNCCoeuG4HHl9g1ig+pejUyikexbbDdtXPe jnLOSPFKKkuGRL/U+LzHcCK/3laeiUwb5YML0pkYHpce6tXtZnl+RAl0wNWGV0Cblxsx/M MqFcjVcE47waKPPhBkhEFN3aEsdSLHcMJs4DFmVnD1Usgp3wsa+z2D8uypOdrA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760344374; a=rsa-sha256; cv=none; b=VdjtXOE1jmwWnFwRLtjkt7K3xh3HysI9ovvR9AxfANWokITsgSgvdb0Sk0nlUtzlGRXIs/ DJmSzhBT6TDKo9TBvpinifq4APmkElqwBiP603fx6qW3OkeOtltrlhdr1jysHvqk6gCfB3 2MGjs8O4iEmEdyYq7h/W8ieYJz+PvloV7wn3XGwUYAIe6B4TeXv1XBNb6nRPbVOCvJu2NF eQFSeseyCe6ci/yu6rLuolRbQ6C1m7tWXl/V9EtL7cux5GMAmd4L6cLt1vkk8edh4B3LOK xrNXR2gS8zzex1NyeCo7cA/svkEtRBU9zDJrJo7uoPPNDGS/lDpElnXhfHUGDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from amaryllis.le-fay.org (amaryllis.le-fay.org [IPv6:2a00:1098:6b:400::9]) (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 did not present a certificate) (Authenticated sender: ivy/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4clVwQ1gz9z1S6b; Mon, 13 Oct 2025 08:32:54 +0000 (UTC) (envelope-from ivy@freebsd.org) Date: Mon, 13 Oct 2025 09:32:45 +0100 From: Lexi Winter To: fs@freebsd.org, current@freebsd.org Subject: openat("./...", O_CREAT) fails even though the directory exists Message-ID: Mail-Followup-To: fs@freebsd.org, current@freebsd.org 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 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8nP7eUhsxcXOAism" Content-Disposition: inline --8nP7eUhsxcXOAism Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hello, i'm trying to debug an issue with sendmail in main where smmsp stops working after upgrading the FreeBSD-sendmail package. i've narrowed this down to the following sequence of system calls: 44288: fstatat(AT_FDCWD,"./df59D8I2px044288",0xecbda905210,0x0) ERR#2 'No such file or directory' 44288: fstatat(AT_FDCWD,".",{ mode=drwxr-xr-x ,inode=129826,size=2,blksize=131072 },AT_SYMLINK_NOFOLLOW) = 0 (0x0) 44288: geteuid() = 0 (0x0) 44288: fstatat(AT_FDCWD,".",{ mode=drwxr-xr-x ,inode=129826,size=2,blksize=131072 },0x0) = 0 (0x0) 44288: openat(AT_FDCWD,"./df59D8I2px044288",O_RDWR|O_CREAT|O_EXCL,0600) ERR#2 'No such file or directory' this doesn't make sense to me: since "." exists, how can openat() return ENOENT here? the process cwd is /var/spool/clientmqueue, and i've checked that the inode number for this directory doesn't change across upgrade, so we aren't deleting and recreating it. the full truss output is available here: https://people.freebsd.org/~ivy/tmp/smmsp.trace.txt does anyone have an idea what's going on here? --8nP7eUhsxcXOAism Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCaOy5KgAKCRD1nT63mIK/ YPjBAQDZAHcY1mP/O1IdZHI62N3p/Mmsn5W3eQTroOt8NLC+HAEA3XcYfdiylOcv pavt2EylQQ64X9H2+urHN47/tLbwPQs= =mynk -----END PGP SIGNATURE----- --8nP7eUhsxcXOAism--