linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] e4defrag: avoid unsuccessful return in non-privileged user
@ 2009-09-30  7:22 Kazuya Mio
  2009-09-30 18:37 ` Greg Freemyer
  0 siblings, 1 reply; 3+ messages in thread
From: Kazuya Mio @ 2009-09-30  7:22 UTC (permalink / raw)
  To: linux-ext4, Theodore Tso

If non-privileged user does e4defrag, e4defrag returns 1 despite
its success. This patch fixes this problem.

Signed-off-by: Kazuya Mio <k-mio@sx.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;
 				}

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-01  8:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30  7:22 [PATCH 3/3] e4defrag: avoid unsuccessful return in non-privileged user Kazuya Mio
2009-09-30 18:37 ` Greg Freemyer
2009-10-01  8:16   ` Kazuya Mio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).