]> git.ipfire.org Git - people/ms/dma.git/commit
flushspool: use O_TRUNC instead of utimes(2)
authorSimon Schubert <2@0x2c.org>
Thu, 25 Jul 2013 21:22:24 +0000 (23:22 +0200)
committerSimon Schubert <2@0x2c.org>
Thu, 25 Jul 2013 21:22:24 +0000 (23:22 +0200)
commit3f9fdc0f61e6fef9799c8347e7fa6f412d1fec68
treecb31e6b937bf9928f6ed0fa8a08bba9f04744b78
parentaa405e274bb95b4c4da04655e4f12de0d5a48a10
flushspool: use O_TRUNC instead of utimes(2)

utimes(2) only works if the file is owned by the current user.  Use
open(..., O_TRUNC|...) instead, together with a group writable flush
file.
Makefile
spool.c