home *** CD-ROM | disk | FTP | other *** search
- Path: news.mountain.net!usenet
- From: gene_heskett@wvlink.mpl.com (Gene Heskett)
- Newsgroups: comp.sys.amiga.programmer
- Subject: File Protection bits - again -
- Date: 11 Jan 1996 06:56:32 GMT
- Organization: MountainNet, Inc. Morgantown WV 800.444.1458
- Message-ID: <2962.6584T98T1106@wvlink.mpl.com>
- NNTP-Posting-Host: slip3.mpl.com
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- Hello all; First, let me apologise for the excess bandwidth here, but a
- full explanation is always quicker in the long run.
-
- I have a bit of a connundrum regarding the XPR library specification.
-
- I have recently been involved with porting the Omen Tech/Chuck Forsburg
- zmodem code version 3.36, which normally runs on unix or similar machines
- to the OS9 level two operating system. The zmodem protocol specifies that
- the protection bits of the file being sent are to be sent in standard unix
- format, and that any translations needed to achieve this are up to the
- platform chosen.
-
- This is not the first time I've been in on this, I helped on the 3.24 port
- also, doing the crc calcs in asm, so I'm moderately familiar with it. Its
- all in C except the crc stuffs I did, 30x faster than a clib call for the
- same thing.
-
- Imagine my surprise when I hooked up a null modem to my Amiga, figuring I
- could use the Amiga xprzmodem.library as a test target. Yeah, sure. The
- files attributes or permissions, protection bits, whatever you want to call
- them are for the most part thrown away by the Amiga zmodem. After putzing
- around with Olaf's version 2.58 for a week doing byte by byte traces, and
- finding that the target os9 machines code was setting the perms exactly as
- the amiga told it to.
-
- Then I finally came across a comment someplace in the amiga's library
- source that said "the XPR protocol doesn't have access to the protection
- bits in the specification!"
-
- I printed out a copy of the xpr spec, and damned if that comment isn't
- correct. Suffice to say, I did finally find a library that at least fakes
- it well enough to test against in version 3.51 by another gentleman. At
- least I didn't have to run "protect filename rewd" even before I deleted
- the dummy test file.
-
- So get to the question will ya!
-
- Ok, ok - here it is: Is there *any legal way* for an xpr library to reach
- over into the dos.library or where ever and extract that 16 bit protection
- bits integer so that it can actually meet the protocol spec?
-
- In the target OS9 machines filesystem, such information is readily
- available, and I was amazed that its almost considered privy by amigados.
- What I have in mind, since I have that 3.51 source, is to see if it can
- indeed be "fixed" and therefore rendered totally unix and network
- compatible. It also does a good job of explaining why I couldn't download
- using my ISP's VAX version of sz, the error rates were killers. I had
- those ftn and xpr-2001 extensions turned on, and they aren't zmodem strict.
- Between 2 Amiga's fine, but not to the outside world. Not to mention the
- VAX vesion of zmodem is prolly 1.0, the last PD version!
-
- Ideas, sample functions anybody? All ideas gratefully investigated.
-
- /* Gene Heskett | These opinions are NOT to be */
- /* CE @ WDTV Weston/Clarksburg WV | confused with the official */
- /* <gene_heskett@wvlink.mpl.com> | WDTV managment views */
- #include <std.disclaimer>
-
-
-