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 From: Chris Faylor Date: Mon, 11 Sep 2000 16:51:28 -0400 To: "'cygwin AT sources DOT redhat DOT com'" Subject: Re: Samba install problems Message-ID: <20000911165128.B10362@cygnus.com> Reply-To: cygwin AT sources DOT redhat DOT com Mail-Followup-To: "'cygwin AT sources DOT redhat DOT com'" References: <896908DA55C4D311B9C000C04F01A05406F90F AT ENTERPRISE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <896908DA55C4D311B9C000C04F01A05406F90F@ENTERPRISE>; from Harold@compasstechnologies.com on Mon, Sep 11, 2000 at 04:42:28PM -0400 On Mon, Sep 11, 2000 at 04:42:28PM -0400, Harold Hunt wrote: >CGF> I believe that this may just be a problem with the trailing >CGF>backslash. I think we go out of our way to get rid of this in >CGF>cygwin. > >CreateDirectory( "U:\\disks\\cygdown\\latest\\ash", NULL ), notice the >lack of a trailing backslash; it still fails, and this is being called >from the sample program I wrote, so it has no dependency on Cygwin. Nor was I claiming that it did. I was just pointing out that we have to work around this problem in Cygwin. >I just installed Samba 2.0.7 and the problem still exists, at least on my >machine. Do any of the directories mentioned above exist? I.e., does u:\disks exist? u:\disks\cygdown? u:\disks\cygdown\latest? u:\disks\cygdown\latest\ash? When you do get this to work on your local disk are you mirroring a similar structure, i.e., c:\disks\cygdown\latest\ash ? Where the same directories exist on c: as exist on u:? cgf >Harold L Hunt II >Phone: 800-850-1616 ext 108 >Email: harold AT compasstechnologies DOT com > >-----Original Message----- >From: Chris Faylor [mailto:cgf AT cygnus DOT com] >Sent: Monday, September 11, 2000 3:59 PM >To: Harold Hunt >Cc: cygwin AT sources DOT redhat DOT com; DJ Delorie >Subject: Re: Samba install problems > >On Mon, Sep 11, 2000 at 03:24:14PM -0400, Harold Hunt wrote: >>DJ, >> >>When running setup.exe from my Samba share, U:, I get the following log >>results: >>mbox fatal: Can't open latest/ash/ash-20000823.tar.gz.tmp for writing: No >>such file or directory >> >>/var/log/samba/log.bones contains the following error message: >>[2000/09/11 13:57:51, 0] smbd/open.c:open_directory(1188) >> open_directory: unable to create disks/cygdown/latest/ash. Error was No >>such >> file or directory >> >>When running the same setup.exe on C: I get no such errors. >> >>The following program fails as well, giving the same message in the Samba >>log file: >>int main(int argc, char* argv[]) >>{ >> int iResult = 0 ; >> DWORD dwError = 0 ; >> >> iResult = CreateDirectory( "U:\\disks\\cygdown\\latest\\ash\\", NULL >>) ; >> >> if (!iResult) { >> dwError = GetLastError() ; >> cout << "CreateDirectory failed: " << dwError << endl ; >> } else { >> cout << "CreateDirectory succeeded" << endl ; >> } >> >> return 0; >>} >> >>However, CreateDirectory("U:\\disks\\cygdown\\latest\\", NULL ) works, >note, >>u:\disks\cygdown exists at time of call, but u:\disks\cygdown\latest does >>not exist; it seems to me that Samba fails on CreateDirectory calls that >>attempt to create nested non-existent directories. I'm guessing that this >>has to have showed up as a bug report for Samba, as CreateDirectory is >>primarily used for creating several directories at once, so this has >>probably been fixed after Samba 2.0.6, but I have yet to check for such a >>bug report. > >I believe that this may just be a problem with the trailing backslash. I >think we go out of our way to get rid of this in cygwin. > >(Note that I've redirected this discussion to the cygwin mailing list) > >cgf > >-- >Want to unsubscribe from this list? >Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- cgf AT cygnus DOT com Cygnus Solutions, a Red Hat company http://sourceware.cygnus.com/ http://www.redhat.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com