Compare commits

..

1 Commits
v0.3 ... v0.4

Author SHA1 Message Date
ncpfs archive import
8fa4442004 Import ncpfs 0.4 2026-04-28 20:39:57 +02:00
6 changed files with 23 additions and 33 deletions

BIN
.downloads/ncpfs-0.4.tgz Normal file

Binary file not shown.

View File

@@ -1,3 +1,9 @@
ncpfs-0.3 -> ncpfs-0.4
- removed bug causing kernel to crash on filenames too long
This was a typical C bug! Thanks to Uwe Bonnes,
bon@elektron.ikp.physik.th-darmstadt.de for his patience with this one.
ncpfs-0.2 -> ncpfs-0.3 ncpfs-0.2 -> ncpfs-0.3
- removed bug in get_pname_static - removed bug in get_pname_static

View File

@@ -6,7 +6,7 @@ INCLUDES = -I/usr/src/linux/include
CFLAGS = -Wall -Wstrict-prototypes -O2 -DMODULE -fomit-frame-pointer \ CFLAGS = -Wall -Wstrict-prototypes -O2 -DMODULE -fomit-frame-pointer \
$(INCLUDES) \ $(INCLUDES) \
# -DDEBUG_NCP=1 -DDEBUG_NCP_MALLOC # -DDEBUG_NCP=2 -DDEBUG_NCP_MALLOC
# -DDEBUG_NCP_MALLOC # -DDEBUG_NCP_MALLOC
CC = gcc -D__KERNEL__ -I. CC = gcc -D__KERNEL__ -I.
@@ -27,6 +27,9 @@ all: ncpfs.o ncpmount ncptest
ncpfs.o: $(OBJS) ncpfs.o: $(OBJS)
$(LD) -r -o ncpfs.o $(OBJS) $(LD) -r -o ncpfs.o $(OBJS)
ncplib.o: ncplib.c ncplib.h
$(CC) $(CFLAGS) -finline-functions -c $<
ncpmount: ncpmount.o ncpmount: ncpmount.o
gcc -o ncpmount ncpmount.o gcc -o ncpmount ncpmount.o
@@ -40,7 +43,7 @@ ncptest.o: ncptest.c
gcc -c ncptest.c -Wall -I. -g gcc -c ncptest.c -Wall -I. -g
ncplib_user.o: ncplib.o ncplib_user.o: ncplib.o
gcc -c ncplib.c -Wall -I. -g -o ncplib_user.o gcc -c ncplib.c -O3 -Wall -I. -g -o ncplib_user.o
nwcrypt.o: nwcrypt.c nwcrypt.o: nwcrypt.c
gcc -c -O2 -Wall nwcrypt.c gcc -c -O2 -Wall nwcrypt.c

24
README
View File

@@ -25,30 +25,6 @@ programming. If you know about the concepts and possibilities of NCP,
Ralph Brown's interrupt list becomes much more readable. It's much Ralph Brown's interrupt list becomes much more readable. It's much
easier to find undocumented information if you know what to look for! easier to find undocumented information if you know what to look for!
MAILING LIST
There is a mailing list for discussing lwared and ncpfs. Here's the
message I received after subscribing:
---
Thank you for your subscription to the list "linware".
Topics for the list:
- discussing LinWare server, its features, installation problems and bugs
- using IPX protocol under Linux
- IPX routing and router daemons under Linux
Send your list postings to address: "linware@sh.cvut.cz"
Send your list control commands to address: "listserv@sh.cvut.cz"
---
You can subscribe to this list by sending a message with a line
'add your_name@your_host linware' to listserv@sh.cvut.cz .
NCPLIB
For the curious: the file ncplib.c is usable from user space as well. For the curious: the file ncplib.c is usable from user space as well.
Look at the file ncptest.c for a possible use. I use ncptest to check Look at the file ncptest.c for a possible use. I use ncptest to check
my assumptions about the widely undocumented NetWare Core Protocol. my assumptions about the widely undocumented NetWare Core Protocol.

11
dir.c
View File

@@ -477,8 +477,10 @@ get_pname_static(struct inode *dir, const char *name, int len,
} }
#endif #endif
DDPRINTK("get_pname_static: parentname = %s, len = %d\n", DDPRINTK("get_pname_static: parentname = %s, parlen = %d\n",
parentname, parentlen); parentname, parentlen);
DDPRINTK("get_pname_static: name = %s, len = %d\n",
name, len);
if (len > NCP_MAXNAMELEN) { if (len > NCP_MAXNAMELEN) {
return -ENAMETOOLONG; return -ENAMETOOLONG;
@@ -553,7 +555,7 @@ get_pname(struct inode *dir, const char *name, int len,
int result_len; int result_len;
int res; int res;
if ((res = get_pname_static(dir,name,len,result,&result_len) != 0)) { if ((res = get_pname_static(dir,name,len,result,&result_len)) != 0) {
return res; return res;
} }
@@ -753,7 +755,7 @@ ncp_lookup(struct inode *dir, const char *__name, int len,
return -ENOENT; return -ENOENT;
} }
DPRINTK("ncp_lookup: %s\n", __name); DDPRINTK("ncp_lookup: %s, len %d\n", __name, len);
server = NCP_SERVER(dir); server = NCP_SERVER(dir);
@@ -769,6 +771,9 @@ ncp_lookup(struct inode *dir, const char *__name, int len,
return error; return error;
} }
DDPRINTK("ncp_lookup: get_pname for %s returned %d\n",
__name, error);
result_info = ncp_find_inode(NCP_SERVER(dir), name); result_info = ncp_find_inode(NCP_SERVER(dir), name);
if (result_info != 0) { if (result_info != 0) {

View File

@@ -1,14 +1,14 @@
Begin3 Begin3
Title: ncpfs Title: ncpfs
Version: 0.3 Version: 0.4
Entered-date: 01. November 1995 Entered-date: 02. November 1995
Description: With ncpfs you can mount volumes of your novell Description: With ncpfs you can mount volumes of your novell
server under Linux. server under Linux.
Keywords: filesystem kernel ncp novell netware Keywords: filesystem kernel ncp novell netware
Author: lendecke@namu01.gwdg.de (Volker Lendecke) Author: lendecke@namu01.gwdg.de (Volker Lendecke)
Maintained-by: lendecke@namu01.gwdg.de (Volker Lendecke) Maintained-by: lendecke@namu01.gwdg.de (Volker Lendecke)
Primary-site: linux01.gwdg.de:/pub/ncpfs Primary-site: linux01.gwdg.de:/pub/ncpfs
~45k ncpfs-0.3.tgz ~45k ncpfs-0.4.tgz
~ 1k ncpfs-0.3.lsm ~ 1k ncpfs-0.4.lsm
Copying-policy: GPL Copying-policy: GPL
End End