114572d558
- remove debugging printf from 0001-Btrfs-progs-add-a-btrfs-select-super-command-to-over.patch (forwarded request 76766 from dsterba) OBS-URL: https://build.opensuse.org/request/show/76976 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/btrfsprogs?expand=0&rev=22
31 lines
841 B
Diff
31 lines
841 B
Diff
From bb1b811edfa23c767890ace271dede34094155a3 Mon Sep 17 00:00:00 2001
|
|
From: Arne Jansen <sensille@gmx.net>
|
|
Date: Mon, 14 Mar 2011 12:57:49 +0100
|
|
Subject: [PATCH 25/28] btrfs-map-logical: segfaults when no output file is
|
|
given
|
|
|
|
when no output file is given, info_file stays NULL and the following
|
|
fprintf segfaults. Default to stdout.
|
|
|
|
Signed-off-by: Arne Jansen <sensille@gmx.net>
|
|
Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
|
|
---
|
|
btrfs-map-logical.c | 1 +
|
|
1 files changed, 1 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
|
|
index 6d3ef7a..d79a73a 100644
|
|
--- a/btrfs-map-logical.c
|
|
+++ b/btrfs-map-logical.c
|
|
@@ -173,6 +173,7 @@ int main(int ac, char **av)
|
|
exit(1);
|
|
}
|
|
|
|
+ info_file = stdout;
|
|
if (output_file) {
|
|
if (strcmp(output_file, "-") == 0) {
|
|
out_fd = 1;
|
|
--
|
|
1.7.5.2.353.g5df3e
|
|
|