compiling wu.ftpd-BETA10

compiling wu.ftpd-BETA10

Post by Peters Todd Lynd » Sat, 27 Jul 1996 04:00:00



I am trying to build wu.ftpd-BETA10 with shadow support.
I worked through a number of annoying little problems,
but there is one I cannot solve:

In function 'matchdir' of glob.c
glob.c:284: dereferencing pointer to incomplete type

LIne 284 of glob.c is : if (fstat(dirp->dd_fd, &stb) < 0)

Has anyone else had and fixed this problem?
Todd Peters

 
 
 

compiling wu.ftpd-BETA10

Post by Ashok Aiy » Sat, 27 Jul 1996 04:00:00



Quote:>In function 'matchdir' of glob.c
>glob.c:284: dereferencing pointer to incomplete type

>LIne 284 of glob.c is : if (fstat(dirp->dd_fd, &stb) < 0)

>Has anyone else had and fixed this problem?

It is a simple patch.  Here is one for wu-ftpd-2.4.2-beta11 (i.e
one beta more recent than beta10), but it will probably apply to
beta10 just fine.

Later,
Ashok

--- glob.c.orig Sun Apr 21 19:55:04 1996

 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>

 #define        QUOTE 0200

                        return;
                goto patherr2;
        }
+#ifdef __ELF__
+       if (fstat(dirfd(dirp), &stb) < 0)
+               goto patherr1;
+#else          
        if (fstat(dirp->dd_fd, &stb) < 0)
                goto patherr1;
+#endif
        if (!isdir(stb)) {
                errno = ENOTDIR;
                goto patherr1;

--
Ashok Aiyar, Ph.D.                      

University of Wisconsin-Madison                  tel: (608) 262-6697

 
 
 

compiling wu.ftpd-BETA10

Post by R. Scott Baile » Thu, 01 Aug 1996 04:00:00


An even shorter fix, that works fine for me, is to add:

#define DIRENT_ILLEGAL_ACCESS

to src/config.h and recompile. Kudos to the person that posted this
solution a couple months ago when I needed it.

  Scott

----------


EDS / ESC - Detroit            313-556-6011 [8/346]

 
 
 

1. wu-ftpd instead of ftpd

ftpd always craps out - in fact, it no longer seems to function upon
restart, dunno why.  I'm thinking of switching to wu-ftpd, which I
believe I installed the from the ports collection, when I installed this
whole thing.  A whereis wu-ftpd finds it in usr/ports/.... I ran make
install but to no avail, what now?

TIA

Rick

2. Stand Alone Linux?

3. Wu.ftpd or linux-ftpd?

4. wrong passwd - delay

5. in.ftpd zombie problem with wu-ftpd on RH6

6. could you tell me

7. FreeBSD ftpd 6.0 vs wu-ftpd 2.4

8. New login

9. Weirdness of solaris ftpd and wu-ftpd

10. How to install wu.ftpd or in.ftpd with chroot?

11. wu-ftpd or pro-ftpd

12. wu-ftpd with RH v7 sending auth packet/wu-ftp connection delays SOLUTION

13. ftpd wu.ftpd not starting up