as shown by : * Attempting to automatically reinstall any Windows drivers * you might already have. * Driver: netbc564 mv: cannot overwrite directory `/tmp/netbc564' netbc564 is already installed. Use -e to remove it how to reproduce : `module-rebuild rebuild` twice problems : * mv won't succeed if another directory with the same name already exists * if forced, it will lead to a security problem (race condition) * assumes /tmp is available as a TMPDIR * leaves /tmp dirty
Created attachment 76051 [details, diff] "obvious" patch to the problem still problematic as : 0) not tested 1) not using a real lock and therefore has a race condition between the test and the mv/rm 2) probably still violates the sandbox rules by using ${TMPDIR}
(In reply to comment #1) > Created an attachment (id=76051) [edit] > "obvious" patch to the problem > > still problematic as : > > 0) not tested > 1) not using a real lock and therefore has a race condition between the test > and the mv/rm > 2) probably still violates the sandbox rules by using ${TMPDIR} > Well I think I fixed this by switching to using ${T} that should be used within ebuilds. Please test ndiswrapper-1.17 and reopen if not fixed well enough. I don't have the hardware at hand atm so I can't test.
confirmed: works like a charm, thanks