Define Files on FreeBSD...

Fairlight fairlite at fairlite.com
Wed Apr 27 16:02:54 PDT 2005


In the relative spacial/temporal region of
Wed, Apr 27, 2005 at 04:08:41PM -0500, Chad McWilliams achieved the spontaneous
generation of the following:
> 
> I've run setperms several times with 5.0.13 & .14 to no avail.
> 
> The permissions are as follows:
> 
> /usr/appl			user filepro, group filepro, mode 755
> /usr/appl/filepro		user filepro, group filepro, mode 755
> ddefine			user filepro, group filepro, mode 4755
> makedir			user root, group wheel, mode 4755
> 
> These permissions are straight from the install.  I haven't messed with
> any of them on this system.
> 
> I also had this problem on a FreeBSD 4.X (.8 I think) system.

Okay, I'm going back to the archive for your original post:

#####
When trying to define a file on FreeBSD filePro I get the following error:


*** A System Error Has Occurred ***

Cannot open file.
/usr/appl/filepro/<file>/map: No such file or directory
#####

So, this tells us it's hitting ENOENT, or possibly one of several other
errors.  There are a limited amount of conditions that could cause this:

1) /usr/appl/filepro/<file>/map should exist already and an attempt at
   opening it without O_CREAT is failing.

2) /usr/appl/filepro/<file> is not being created itself prior to the
   creation of the map.  I quote from the open(2) manpage:

       ENOENT A directory component in pathname does not exist or
              is a dangling symbolic link.

Of course, all of this assumes that filePro is actually reporting the error
correctly.  I've gotten wholly unrelated errors out of it before that point
in entirely the wrong direction.  However, the verbiage for ENOENT would
indicate that even if the error reporting is in the wrong place, that was
the last error condition encountered.  So I would hold at least the system
error to be accurate, even if the context isn't.  Something that should
exist, doesn't.

Does the file/table directory exist after you encounter this (with or
without a map or subsidiary files)?

mark->
-- 
          *****   Fairlight Consulting's Software Solutions   *****
OneGate Universal CGI Gateway:                  http://onegate.fairlite.com/
FairPay PayPal Integration Kit:                 http://fairpay.fairlite.com/
RawQuery B2B HTTP[S] Client & CGI Debugger:     http://rawquery.fairlite.com/
Lightmail Mail Sending Agent:                   http://lightmail.fairlite.com/
FairView Image Viewer for Integration:          http://fairview.fairlite.com/


More information about the Filepro-list mailing list