openbsd-ports/x11/gnome/file-roller/patches/patch-src_fr-command-7z_c

23 lines
657 B
Plaintext

$OpenBSD: patch-src_fr-command-7z_c,v 1.3 2011/09/12 07:26:20 ajacoutot Exp $
Fix a crasher possible with 7z files.
--- src/fr-command-7z.c.orig Tue Mar 1 19:51:35 2011
+++ src/fr-command-7z.c Mon May 23 10:20:44 2011
@@ -129,6 +129,7 @@ list__process_line (char *line,
}
else {
fdata = p7z_comm->fdata;
+ if (fdata->full_path) {
if (fdata->dir)
fdata->name = dir_name_from_path (fdata->full_path);
else
@@ -136,6 +137,7 @@ list__process_line (char *line,
fdata->path = remove_level_from_path (fdata->full_path);
fr_command_add_file (comm, fdata);
p7z_comm->fdata = NULL;
+ }
}
}
return;