Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Subject: Re: Port of DHCP From: Robert Collins To: Jorge Goncalvez Cc: cygwin AT sources DOT redhat DOT com In-Reply-To: <200107241403.QAA01196@cabs40.col.bsf.alcatel.fr> References: <200107241403 DOT QAA01196 AT cabs40 DOT col DOT bsf DOT alcatel DOT fr> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.11 (Beta Release) Date: 25 Jul 2001 08:27:17 +1000 Message-Id: <996013637.5202.3.camel@lifelesswks> Mime-Version: 1.0 X-OriginalArrivalTime: 24 Jul 2001 22:13:38.0209 (UTC) FILETIME=[E3747910:01C1148D] On 24 Jul 2001 16:03:18 +0200, Jorge Goncalvez wrote: > Hi, I made a port of DHCP under cygwin in windows 98 but When I launch the dhcpd > server i ve got a permission error: > actually: > > /* Move in the new file... */ > if (rename (newfname, path_dhcpd_db) < 0) > error ("Can't install new lease database %s to %s: %m", > newfname, path_dhcpd_db); > > counting = 1; > } > > The last block (after "Move in the new file") always returns a -1 and > the errno is EACCES. > > > newfname is open (db_fd). Windows don't let me rename an > open file in general.so > How can i get rid of this? Alter your program to no longer try to renae open files. Rob > > Thanks. > > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/