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]

setup clobbers passwd


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

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