diff options
author | robi <robi> | 2012-04-07 19:34:46 +0000 |
---|---|---|
committer | robi <robi> | 2012-04-07 19:34:46 +0000 |
commit | aa8e94625c2f8506a5858615c7e767431cb634bd (patch) | |
tree | f5913d2df549711e80c5f58767a2e9f89a1ead63 /src/ext4magic.c | |
parent | 44e4fd4550be54045d90dbfa7165436946e3f81c (diff) |
support for ecryptfs
Diffstat (limited to 'src/ext4magic.c')
-rw-r--r-- | src/ext4magic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ext4magic.c b/src/ext4magic.c index 96792c8..e084375 100644 --- a/src/ext4magic.c +++ b/src/ext4magic.c @@ -340,7 +340,7 @@ char defaultdir[] = "RECOVERDIR" ; const char *usage = "\next4magic -M [-j <journal_file>] [-d <target_dir>] <filesystem> \n\ ext4magic -m [-j <journal_file>] [-d <target_dir>] <filesystem> \n\ ext4magic [-S|-J|-H|-V|-T] [-x] [-j <journal_file>] [-B n|-I n|-f <file_name>|-i <input_list>] [-t n|[[-a n][-b n]]] [-d <target_dir>] [-R|-r|-L|-l] [-Q] <filesystem>"; -int c; +int l,c ; int open_flags = EXT2_FLAG_SOFTSUPP_FEATURES; int recovermodus = 0 ; int disaster = 0; @@ -584,7 +584,8 @@ while ((c = getopt (argc, argv, "TJRMLlmrSxi:t:j:f:Vd:B:b:a:I:H")) != EOF) { } mode |= COMMAND_INODE ; mode |= COMMAND_PATHNAME ; - pathname = malloc(512); + l = strlen(optarg); + pathname = malloc( l+1 ); strcpy(pathname,optarg); break; |