This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
setup clobbers passwd
- To: "Cygwin-patches" <cygwin-patches at sources dot redhat dot com>
- Subject: setup clobbers passwd
- From: "Trevor Forbes" <trevorforbes at ozemail dot com dot au>
- Date: Sat, 27 Oct 2001 19:31:35 +0930
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.
Trevor
passwd.patch
2001-27-10 Trevor Forbes <t4bs@hotmail.com>
postinstall.cc (each) Remove "*.done" file else rename will fail