mirror of https://github.com/vitalif/e2fsprogs
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 <k-mio@sx.jp.nec.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>bitmap-optimize
parent
02808f7d9a
commit
4baacad703
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue