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=33812bb1b26ab9c594dcee901aa8290a5d8056bd commit 33812bb1b26ab9c594dcee901aa8290a5d8056bd Author: Guillem Jover <[email protected]> AuthorDate: Fri Jan 13 22:38:39 2023 +0100 dpkg-deb: Use intermediate variable for exec mark on --info output We will be splitting the print, and this will avoid having to repeat the logic in the different branches. Changelog: internal --- src/deb/info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/deb/info.c b/src/deb/info.c index 38f88aab1..7881df6f7 100644 --- a/src/deb/info.c +++ b/src/deb/info.c @@ -141,6 +141,7 @@ info_list(const char *debar, const char *dir) if (S_ISREG(stab.st_mode)) { char interpreter[INTERPRETER_MAX + 1]; int lines, c; + int exec_mark = (S_IXUSR & stab.st_mode) ? '*' : ' '; cc = fopen(controlfile.buf, "r"); if (!cc) @@ -167,7 +168,7 @@ info_list(const char *debar, const char *dir) fclose(cc); printf(_(" %7jd bytes, %5d lines %c %-20.127s %.127s\n"), (intmax_t)stab.st_size, lines, - (S_IXUSR & stab.st_mode) ? '*' : ' ', + exec_mark, cdep->d_name, interpreter); } else { printf(_(" not a plain file %.255s\n"), cdep->d_name); -- Dpkg.Org's dpkg

