This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=474db9879aac91f4f97d3e7b0d205d4c2b63c360 commit 474db9879aac91f4f97d3e7b0d205d4c2b63c360 Author: Guillem Jover <[email protected]> AuthorDate: Tue Jul 9 04:15:50 2024 +0200 dpkg-realpath: Do not allow an empty pathname argument The code was expecting a non-empty string, and resolving an empty pathname does not make much sense anyway. Warned-by: coverity --- src/realpath/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/realpath/main.c b/src/realpath/main.c index c6a1d084e..b4a2d1d21 100644 --- a/src/realpath/main.c +++ b/src/realpath/main.c @@ -223,7 +223,7 @@ main(int argc, const char *const *argv) debug(dbg_general, "root=%s admindir=%s", dpkg_fsys_get_dir(), dpkg_db_get_dir()); pathname = argv[0]; - if (pathname == NULL) + if (str_is_unset(pathname)) badusage(_("need a pathname argument")); instdir = dpkg_fsys_get_dir(); -- Dpkg.Org's dpkg

