summaryrefslogtreecommitdiffstats
path: root/src/deb
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:40:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:40:30 +0000
commit396478fcc2ed755e02e2573c8be89e9a98aec512 (patch)
tree5f3b06ddc745429831d93323182288ade533804f /src/deb
parentAdding debian version 1.22.4. (diff)
downloaddpkg-396478fcc2ed755e02e2573c8be89e9a98aec512.tar.xz
dpkg-396478fcc2ed755e02e2573c8be89e9a98aec512.zip
Merging upstream version 1.22.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/deb')
-rw-r--r--src/deb/build.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/deb/build.c b/src/deb/build.c
index 597872b..1f0c050 100644
--- a/src/deb/build.c
+++ b/src/deb/build.c
@@ -177,10 +177,9 @@ file_treewalk_feed(const char *dir, int fd_out)
if (S_ISLNK(treenode_get_mode(node))) {
fi = file_info_new(nodename);
file_info_list_append(&symlist, &symlist_end, fi);
- } else {
- if (fd_write(fd_out, nodename, strlen(nodename) + 1) < 0)
- ohshite(_("failed to write filename to tar pipe (%s)"),
- _("data member"));
+ } else if (fd_write(fd_out, nodename, strlen(nodename) + 1) < 0) {
+ ohshite(_("failed to write filename to tar pipe (%s)"),
+ _("data member"));
}
free(nodename);