]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ncpfs: propagate umode_t
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Jul 2011 07:12:16 +0000 (03:12 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:55:05 +0000 (22:55 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ncpfs/dir.c
fs/ncpfs/ncplib_kernel.h
fs/ncpfs/symlink.c

index a2d50f803a171ec7a5930a5a305c6eb8d753ce71..aeed93a6bde0c972796b92972ec5cea58126dc75 100644 (file)
@@ -919,7 +919,7 @@ out_close:
        goto out;
 }
 
-int ncp_create_new(struct inode *dir, struct dentry *dentry, int mode,
+int ncp_create_new(struct inode *dir, struct dentry *dentry, umode_t mode,
                   dev_t rdev, __le32 attributes)
 {
        struct ncp_server *server = NCP_SERVER(dir);
@@ -928,7 +928,7 @@ int ncp_create_new(struct inode *dir, struct dentry *dentry, int mode,
        int opmode;
        __u8 __name[NCP_MAXPATHLEN + 1];
        
-       PPRINTK("ncp_create_new: creating %s/%s, mode=%x\n",
+       PPRINTK("ncp_create_new: creating %s/%s, mode=%hx\n",
                dentry->d_parent->d_name.name, dentry->d_name.name, mode);
 
        ncp_age_dentry(server, dentry);
index 09881e6aa5ad9ff4b31500827094c9dfcf734ae7..32c06587351a138f34b09955802ad397c5b6a5f3 100644 (file)
@@ -114,7 +114,7 @@ int ncp_dirhandle_alloc(struct ncp_server *, __u8 vol, __le32 dirent, __u8 *dirh
 int ncp_dirhandle_free(struct ncp_server *, __u8 dirhandle);
 
 int ncp_create_new(struct inode *dir, struct dentry *dentry,
-                          int mode, dev_t rdev, __le32 attributes);
+                          umode_t mode, dev_t rdev, __le32 attributes);
 
 static inline int ncp_is_nfs_extras(struct ncp_server* server, unsigned int volnum) {
 #ifdef CONFIG_NCPFS_NFS_NS
index 661f861d80c6f1ac1a26d1fdc831585a5bf7d372..52439ddc8de051bc5693f14220e25ce2d7fcfe39 100644 (file)
@@ -108,7 +108,7 @@ int ncp_symlink(struct inode *dir, struct dentry *dentry, const char *symname) {
        char *rawlink;
        int length, err, i, outlen;
        int kludge;
-       int mode;
+       umode_t mode;
        __le32 attr;
        unsigned int hdr;