[pve-devel] appllied: [PATCH] read firstline: only map ENOENT to undef, raise error otherwise

Dietmar Maurer dietmar at proxmox.com
Tue Jun 13 07:27:16 CEST 2023

> One could argue that the case for not existent should return undef,
> while an empty file should return an empty string, but for that we
> might want to check all use-sites first.

AFAIR I use this function many times assuming that it does not throw errors in case of empty files. That is quite convenient.

More information about the pve-devel mailing list