[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AC3073D.9070606@sx.jp.nec.com>
Date: Wed, 30 Sep 2009 16:22:37 +0900
From: Kazuya Mio <k-mio@...jp.nec.com>
To: linux-ext4@...r.kernel.org, Theodore Tso <tytso@....edu>
Subject: [PATCH 3/3] e4defrag: avoid unsuccessful return in non-privileged
user
If non-privileged user does e4defrag, e4defrag returns 1 despite
its success. This patch fixes this problem.
Signed-off-by: Kazuya Mio <k-mio@...jp.nec.com>
---
e4defrag.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/misc/e4defrag.c b/misc/e4defrag.c
index 94f8529..98dda92 100644
--- a/misc/e4defrag.c
+++ b/misc/e4defrag.c
@@ -2025,6 +2025,7 @@ int main(int argc, char *argv[])
if (!(mode_flag & DETAIL) &&
current_uid != ROOT_UID) {
printf(" Done.\n");
+ success_flag = 1;
continue;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists