diff options
-rw-r--r-- | Changelog | 1 | ||||
-rw-r--r-- | edquota.c | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,5 @@ Changes in quota-tools from 4.00 to 4.01 +* fixed edquota(8) for more users (Jan Kara) * remove fixed limit on number of autofs mount points (Jan Kara) * add quota type names to message catalogue (Jan Kara) * typo fixes, message changes for easier i18n (Jan Kara) @@ -333,7 +333,11 @@ int main(int argc, char **argv) continue; } close(tmpfd); - if ((tmpfd = open(tmpfil, O_RDONLY)) < 0) + /* + * Open in rw mode because we can reuse the file for + * editting next user as well. + */ + if ((tmpfd = open(tmpfil, O_RDWR)) < 0) die(1, _("Cannot reopen!")); if (readprivs(curprivs, tmpfd) < 0) { errstr(_("Cannot read quotas from file.\n")); |