delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/24/10:06:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <200107241403.QAA01196@cabs40.col.bsf.alcatel.fr>
Date: Tue, 24 Jul 2001 16:03:18 +0200 (MEST)
From: Jorge Goncalvez <goncal11 AT col DOT bsf DOT alcatel DOT fr>
Reply-To: Jorge Goncalvez <goncal11 AT col DOT bsf DOT alcatel DOT fr>
Subject: Re: Port of DHCP
To: cygwin AT sources DOT redhat DOT com
MIME-Version: 1.0
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc

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?

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019