All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH v2 3/4] e4defrag: avoid unsuccessful return in non-privileged user
@ 2009-10-20  8:16 Kazuya Mio
  0 siblings, 0 replies; only message in thread
From: Kazuya Mio @ 2009-10-20  8:16 UTC (permalink / raw)
  To: ext4, Theodore Tso, Greg Freemyer

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 f19b6e6..ea04e60 100644
--- a/misc/e4defrag.c
+++ b/misc/e4defrag.c
@@ -2028,6 +2028,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] only message in thread

only message in thread, other threads:[~2009-10-20  8:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-20  8:16 [RFC][PATCH v2 3/4] e4defrag: avoid unsuccessful return in non-privileged user Kazuya Mio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.