]> granicus.if.org Git - sudo/commit
Call mkstemp() as the in invoking user so we don't have to chown the file later.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 7 Sep 2004 18:06:33 +0000 (18:06 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 7 Sep 2004 18:06:33 +0000 (18:06 +0000)
commit707c3c2cb971d6815c2e6ec69133f73e4e30167f
tree07be92909f496e09ed164dce6152c2768c12ca50
parentb243b0ad33bbe5ff32442b5ade181e6235f3ce5e
Call mkstemp() as the in invoking user so we don't have to chown the file later.
Only touch() the temp file if we can do it via the file descriptor.
Don't check for modification of the temp file if we lack fstat().
Catch errors read()ing the temp file.
sudo_edit.c