This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: setup clobbers passwd


On Sat, Oct 27, 2001 at 07:31:35PM +0930, Trevor Forbes wrote:
>The attached simple patch fixes the problem of  passwd being reset everytime
>setup is run.
>
>"Rename" fails if a file named "*.done" exists therefore you end up with two
>files in the /etc/postinstall named passwd-grp.bat.done and passwd-grp.bat.
>Consequently,  passwd-grp.bat clobbers your passwd every time setup is run.
>So how do you end up in this position ---- delete your passwd and group
>files after you have run setup for the first time.     I suspect this is
>happening to many users .........
>
>The patched setup will fix the problem the first time it is run,
>unfortunately, this first time run will still reset the passwd and group
>files. However, the problem will be fixed thereafter.

I'll apply this patch.

I will also fix the problem of mkpasswd/mkgroup being run inappropriately
when /etc/passwd exists.

Thanks!

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]