Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc03b9c
)
e2fsck: Avoid core dump when using the -N option
author
Theodore Ts'o
<tytso@mit.edu>
Sat, 29 Mar 2008 18:46:48 +0000
(14:46 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 29 Mar 2008 18:46:48 +0000
(14:46 -0400)
This bug was accidentally introduced by commit
1dc506cb
.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c
patch
|
blob
|
history
diff --git
a/e2fsck/unix.c
b/e2fsck/unix.c
index
3eb3064
..
d3a8a2b
100644
(file)
--- a/
e2fsck/unix.c
+++ b/
e2fsck/unix.c
@@
-737,7
+737,7
@@
static errcode_t PRS(int argc, char *argv[], e2fsck_t *ret_ctx)
break;
#endif
case 'N':
- ctx->device_name =
optarg
;
+ ctx->device_name =
string_copy(ctx, optarg, 0)
;
break;
#ifdef ENABLE_SWAPFS
case 's':