From: Filip Schauer <f.schauer@proxmox.com>
To: Elias Huhsovitz <e.huhsovitz@proxmox.com>, pve-devel@lists.proxmox.com
Subject: superseded: [PATCH container] fix #7388: prefer container DNS config over host-managed DHCP
Date: Mon, 30 Nov 2026 14:40:24 +0100 [thread overview]
Message-ID: <113be912-7a36-4308-a280-7a1bc2727a34@proxmox.com> (raw)
In-Reply-To: <DMWMUJV5HBJE.11IWUEB3MYVX9@proxmox.com>
On 16/11/2026 13:26, Elias Huhsovitz wrote:
>> + my $configfile = "/proc/$$/fd/" . fileno($configfh);
> Theoretically fileno, can fail (return -1), according to:
> https://perldoc.perl.org/functions/fileno
>
> So we should check for this, instead of concatinating a faulty string,
> e.g.
>
> /proc/whatever/fd/-1
The -1 return from `fileno` only applies to handles opened on in-memory
objects. The handle comes from a successful `open`, which is backed by a
real temp file. So `fileno` cannot return -1 here.
I addressed your other concerns in v2.
Superseded-by:
https://lore.proxmox.com/pve-devel/20261130133226.90647-1-f.schauer@proxmox.com
prev parent reply other threads:[~2026-11-30 13:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 11:20 [PATCH container] fix #7388: prefer container DNS config over host-managed DHCP Filip Schauer
2026-11-16 12:26 ` Elias Huhsovitz
2026-11-30 13:40 ` Filip Schauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=113be912-7a36-4308-a280-7a1bc2727a34@proxmox.com \
--to=f.schauer@proxmox.com \
--cc=e.huhsovitz@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox