Skip to contentSkip to conversation

e4defrag: avoid unsuccessful return in non-privileged user

RFC PATCH In review Kazuya Mio 1 participant 1 message Oct 20, 2009

lore
Share & tools
lore

Kazuya Mio

author
#0 lore raw

RFC PATCH v2 3/4 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.

---

 e4defrag.c |    1 +
 1 file changed, 1 insertion(+)
misc/e4defrag.c +1 -0
index f19b6e6..ea04e60 100644
@@ -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;
 				}