Re: [ptxdist] [PATCH] unfs3: fix attribute setting for symlinks

2020-02-24 Thread Michael Olbrich
On Mon, Feb 24, 2020 at 12:00:51PM +0100, Uwe Kleine-König wrote: > On Tue, Feb 18, 2020 at 03:57:20PM +0100, Uwe Kleine-König wrote: > > unfs makes use of utime() which is unsuitable to set last access and > > modification times for symlinks. So make use of the O_PATH flag to > > open() and use

Re: [ptxdist] [PATCH] unfs3: fix attribute setting for symlinks

2020-02-24 Thread Uwe Kleine-König
On Tue, Feb 18, 2020 at 03:57:20PM +0100, Uwe Kleine-König wrote: > unfs makes use of utime() which is unsuitable to set last access and > modification times for symlinks. So make use of the O_PATH flag to > open() and use the futimens() function. > > As a side effect this is less racy and

[ptxdist] [PATCH] unfs3: fix attribute setting for symlinks

2020-02-18 Thread Uwe Kleine-König
unfs makes use of utime() which is unsuitable to set last access and modification times for symlinks. So make use of the O_PATH flag to open() and use the futimens() function. As a side effect this is less racy and improves resolution from seconds to nanoseconds. Note this will break builds of