e4defrag: avoid unsuccessful return for an non-privileged user

If non-privileged user runs e4defrag, e4defrag returns an exit status
of 1 despite its success. This patch fixes this problem.

Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
bitmap-optimize
Kazuya Mio 2010-12-13 09:59:07 -05:00 committed by Theodore Ts'o
parent 02808f7d9a
commit 4baacad703
1 changed files with 1 additions and 0 deletions

View File

@ -2034,6 +2034,7 @@ int main(int argc, char *argv[])
if (!(mode_flag & DETAIL) &&
current_uid != ROOT_UID) {
printf(" Done.\n");
success_flag = 1;
continue;
}