[pacman-dev] updpkgsums read/write collision

David Macek david.macek.0 at gmail.com
Sun Dec 14 18:28:37 UTC 2014


On 14. 12. 2014 19:01, Dave Reisner wrote:
> I'd be curious to know if it behaves the same way as root (assuming such
> a concept exists).

The error still occurs when running the shell with administrator privileges.

> It should be sufficient the present the minimal case
> of:
> 
>   $ echo 'hello world' >foo
>   $ { rm foo; awk '1' >foo; } <foo
> 
> Technically, I don't believe the file needs content, but as a matter of
> verification, I include it. The file will appear unmodified afterwards
> if this is working as intended.

I simplified it even more. In case you're interested, see <https://gist.github.com/elieux/6463521192baed613099>. I'm currently discussing it on #msys2.

> Surely. This is an acceptable change for Linux as well. Thanks for the
> report.

Thanks.

-- 
David Macek


More information about the pacman-dev mailing list