lkml.org 
[lkml]   [1998]   [Jan]   [17]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
From"Eloy A. Paris" <>
SubjectRe: 2.1.79 + latest smbfs patch
Date17 Jan 1998 15:44:58 GMT
Hi,

Manuel@mgmux.ulpgc.es wrote:

: I have been able to build (2.1.79 + redhat 5.0) them doing the
: following.

And what about the size mismatch between libc5 and libc6's uid_t, gid_t 
and mode_t? If nothing is done the kernel will receive the wrong
parameters to the mount() call.

smbmount uses the following structure defined in linux/smb_mount.h:

struct smb_mount_data {
        int version;
        uid_t mounted_uid;  /* Who may umount() this filesystem? */
        uid_t uid;
        gid_t gid;
        mode_t file_mode;
        mode_t dir_mode;
};
Unless this structure is changed to (for example):

struct smb_mount_data {
        int version;
        __kernel_uid_t mounted_uid;
        __kernel_uid_t uid;
        __kernel_gid_t gid;
        __kernel_mode_t file_mode;
        __kernel_mode_t dir_mode;
};
everything will be screwed up. (there are other places in the kernel include
files where something similar must be done).

Saludos,

E.-

-- 

Eloy A. Paris
Information Technology Department
Rockwell Automation de Venezuela
Telephone: +58-2-9432311 Fax: +58-2-9431645

\
 
 \ /
  Last update: 2005-03-22 12:41    [from the cache]
©2003-2008