[Debian-ha-commits] [ocfs2-tools] 09/58: debugfs.ocfs2: fix command line segfault

Valentin Vidic vvidic-guest at moszumanska.debian.org
Tue Jun 20 13:40:40 UTC 2017


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch upstream
in repository ocfs2-tools.

commit 8dae8dc5e8cd75c154c3ac0b0ad930dd07361dcd
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date:   Wed Jul 13 16:30:30 2016 +0200

    debugfs.ocfs2: fix command line segfault
    
    $ /sbin/debugfs.ocfs2 --superblock
    Segmentation fault
---
 debugfs.ocfs2/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debugfs.ocfs2/main.c b/debugfs.ocfs2/main.c
index 5d1e014..1402d5e 100644
--- a/debugfs.ocfs2/main.c
+++ b/debugfs.ocfs2/main.c
@@ -198,7 +198,7 @@ static void get_options(int argc, char **argv, struct dbgfs_opts *opts)
 		{ "noprompt", 0, 0, 'n' },
 		{ "decode", 0, 0, 'd' },
 		{ "encode", 0, 0, 'e' },
-		{ "superblock", 0, 0, 's' },
+		{ "superblock", 1, 0, 's' },
 		{ "image", 0, 0, 'i' },
 		{ 0, 0, 0, 0}
 	};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/ocfs2-tools.git



More information about the Debian-HA-Commits mailing list