Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
} else if (D.softlimit==0 && D.hardlimit==0) {
goto try_group_quota;
} else {
- if (D.softlimit == 0)
+ if (D.softlimit == 0) {
D.softlimit = D.hardlimit;
+ }
*dfree = D.softlimit - D.curblocks;
*dsize = D.softlimit;
}
} else if (D.softlimit==0 && D.hardlimit==0) {
return False;
} else {
- if (D.softlimit == 0)
+ if (D.softlimit == 0) {
D.softlimit = D.hardlimit;
+ }
*dfree = D.softlimit - D.curblocks;
*dsize = D.softlimit;
}