]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2image: handle SIGINT safely
authorPhillip Susi <psusi@ubuntu.com>
Wed, 25 Dec 2013 04:41:34 +0000 (23:41 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 26 Dec 2013 05:20:43 +0000 (00:20 -0500)
commitecc859b2819cd8772ba660b9229489378e541838
tree16f0bc2111f80e723fa380b4361d9d1fc42fa0ba
parentc40c7ceffe5ca88ec43b853e4a908f1cbb8c0f15
e2image: handle SIGINT safely

When doing an in place move, interrupting it past the
point of no return will destroy the filesystem since
parts of it have been overwritten.  Catch SIGINT the
first time and issue a warning if this is the case.

Signed-off-by: Phillip Susi <psusi@ubuntu.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/e2image.c