Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <191690-22003428231748604@M2W046.mail2web.com>
X-Priority: 3
Reply-To: lhall@rfk.com
X-Originating-IP: 209.113.174.244
From: "lhall@pop.ma.ultranet.com" <lhall@pop.ma.ultranet.com>
To: dmay@tvi.edu, cygwin@cygwin.com, dmay@tvi.edu
Subject: Re: Problem with database engine on Cygwin
Date: Tue, 8 Apr 2003 19:17:48 -0400
MIME-Version: 1.0
Content-type: text/plain; charset=iso-8859-1
X-OriginalArrivalTime: 08 Apr 2003 23:18:55.0733 (UTC) FILETIME=[39D57250:01C2FE25]
Note-from-DJ: This may be spam
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h38NIBC12189

Running on a FAT partition perhaps?  

You may find a review of the code for unlink() (remove() calls this)
call in the Cygwin DLL interesting.  You might find it even more interesting
to build your own debug version of cygwin1.dll and stop in this function.
;-)

Still sounds allot like you're having a permission problem on delete.

Larry 

Original Message:
-----------------
From:  dmay@tvi.edu
Date: Tue, 8 Apr 2003 16:44:06 -0600 (MDT)
To: cygwin@cygwin.com, dmay@tvi.edu
Subject: Re: Problem with database engine on Cygwin


On Monday, Apr 7, 2003 I posted a query re. an issue I am having using a
database engine I wrote with Cygwin.  Through the use of Asserts() and
liberal
printf()s I have traced the problem down to a single line of code. 
Basically,
the code does the following:

int fd;
fd = creat ("SSNumberIndex.inx", 0644);

This is failing with a "permission denied" system error.  In terms of the
order of how things are done, the file SSNumberIndex.inx is unattached from
an
old table, deleted, and then recreated.  It is during this recreation that I
am having the problem.  There is not a file with this name in the current
directory (it is deleted through a remove() system call, and the system
indicates that the removal is successful).

I have tried the following CYGWIN environment variables:

set CYGWIN=nontsec tty glob
set CYGWIN=nontsec tty glob binmode
set CYGWIN=ntsec tty glob binmode
set CYGWIN=ntsec tty glob

All to no avail.  I have read the sections on file permissions and text and
binary modes in Chapter 3 of the User Guide.  I have skimmed through the
FAQ.
I don't see anything that resembles this issue.  My apologies if I just
missed
it.

Any ideas would be appreciated.  Thanks in advance.

-- 
=================================
David May
Senior UNIX System Administrator
Albuquerque TVI
505-224-3015

--
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/


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



--
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/

