From 4baacad7035820f6449473b62510d4202e69578a Mon Sep 17 00:00:00 2001 From: Kazuya Mio Date: Mon, 13 Dec 2010 09:59:07 -0500 Subject: [PATCH] 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 Signed-off-by: Theodore Ts'o --- misc/e4defrag.c | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/e4defrag.c b/misc/e4defrag.c index 8659d972..83625fc5 100644 --- a/misc/e4defrag.c +++ b/misc/e4defrag.c @@ -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; }