Hi,
This patch (on dkpg-dev 1.16.8) works for me
/usr/bin$ diff dpkg-gencontrol dpkg-gencontrol.orig
357,359c357,359
< sysopen($lockfh, $controlfile, O_WRONLY) ||
< syserr(_g("cannot write %s"), $controlfile);
< file_lock($lockfh, $controlfile);
---
> sysopen($lockfh, "debian/control", O_WRONLY) ||
> syserr(_g("cannot write %s"), "debian/control");
> file_lock($lockfh, "debian/control");
392c392
< close($lockfh) || syserr(_g("cannot close %s"), $controlfile);
---
> close($lockfh) || syserr(_g("cannot close %s"), "debian/control");
What is wrong with this patch? To me it looks OK.
I have limited knowledge on how dkpg uses the locking and what is protecting.
What I have difficult to understand is how the option -c will work without my
patch.
Best Ragards,
Mats Danielsson
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]