Ncpmount broken

      Last changed 25. Jan 1997

      Description

      The program ncpmount is broken in Unifix Linux 2.0.

      Reason

      Ncpmount passes some information to the kernel in a struct ncp_mount_data. One of the structure elements is the path name, declared as a character array of size PATH_MAX. In other Linux distributions, PATH_MAX is incorrectly defined as 1024. In Unifix Linux, it is 4096. This change increases the size of the structure to more than 4096 bytes. Unfortunately, in the kernel all but the first 4096 bytes of this structure are discarded.

      Fix

      In the definition of struct ncp_mount_data in /usr/include/linux/ncp_mount.h, change

              unsigned char mount_point[PATH_MAX+1];
      
      to
              unsigned char mount_point[1024+1];
      
      and recompile the kernel and the ncpmount program (from package ncpfs-2.0.4). The bug is already fixed in the updated kernel sources for Linux 2.0.28. A new ncpmount binary is also available. Get the patch http://www.unifix.de/support/patches/patch-2.0.0.5.cpio , and run (as root) swinstall -s patch-2.0.0.5.cpio .

      Workaround

      No workaround is known.

      Back to the list of known problems