[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalid Lstat API return under certain user profiles



Sender: Scott Klement <klemscot@xxxxxxxxxxxx>

Scott Hamilton wrote:

We have at least a couple of user profiles that consistently receive
ENOENT response from the lstat API when doing an FTP File put.  We are
currently using Version 1.5 of the FTPAPI and are running V5R2M0 of
OS400 at the C3077520 cum level.  We have the current level of the
FTPAPI downloaded but have not yet installed it.

Well, that is a very old version of FTPAPI. Hard to say whether upgrading it could help solve
the error, but it couldn't hurt!!


Have you ever heard of this????


ENOENT? Yes. You can read it as (E)rror, the directory has (NO) (ENT)ry for that file.
In other words, "file not found."


One common error is that FTPAPI wants the filename in IFS format. In other words, if you
have a file that you'd traditionally call QGPL/MYFILE you must specify it as:
/qsys.lib/qgpl.lib/myfile.file


Try to find the same filename using WRKLNK. In other words, if you can't see the filename
by doing WRKLNK /path/to/file, then FTP_PUT(x: /path/to/file) will also fail.


Any help would be greatly appreciated!!!

PS..I'm quite sure it's not your code but I'm grasping at straws!!!!


Heh... If you can tell me how to reproduce the problem, or better yet, show me code that
reproduces the problem, then I can give you more specific answers. Otherwise, scrutinize that
filename, maybe you'll see what's happening...



----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubsribe from the list send mail to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr -----------------------------------------------------------------------