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

23 lines
654 B
Plaintext
Raw Normal View History

2009-10-12 15:01:08 -04:00
$OpenBSD: patch-src_fr-command-7z_c,v 1.2 2009/10/12 19:01:08 jasper Exp $
Fix a crasher possible with 7z files.
2009-10-12 15:01:08 -04:00
--- src/fr-command-7z.c.orig Mon Oct 12 20:49:39 2009
+++ src/fr-command-7z.c Mon Oct 12 20:50:18 2009
@@ -130,6 +130,7 @@ list__process_line (char *line,
}
else {
fdata = p7z_comm->fdata;
+ if (fdata->full_path) {
2009-10-12 15:01:08 -04:00
if (fdata->dir)
fdata->name = dir_name_from_path (fdata->full_path);
else
@@ -137,6 +138,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;
+ }
2009-10-12 15:01:08 -04:00
}
}
return;