mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
edquota: Don't pass fd for temporary file to editor.
The editor opens the temporary file by name.
This commit is contained in:
parent
0664b03c16
commit
1ebe85202b
1 changed files with 1 additions and 1 deletions
|
|
@ -284,7 +284,7 @@ main(int argc, char *argv[])
|
|||
freeprivs(protoprivs);
|
||||
exit(0);
|
||||
}
|
||||
tmpfd = mkstemp(tmpfil);
|
||||
tmpfd = mkostemp(tmpfil, O_CLOEXEC);
|
||||
fchown(tmpfd, getuid(), getgid());
|
||||
if (tflag) {
|
||||
if ((protoprivs = getprivs(0, quotatype, fspath)) != NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue