patch-2.4.0-test9 linux/fs/smbfs/inode.c
Next file: linux/fs/super.c
Previous file: linux/fs/read_write.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Tue Sep 19 11:33:06 2000
- Orig file:
v2.4.0-test8/linux/fs/smbfs/inode.c
- Orig date:
Mon Aug 28 12:50:58 2000
diff -u --recursive --new-file v2.4.0-test8/linux/fs/smbfs/inode.c linux/fs/smbfs/inode.c
@@ -33,6 +33,13 @@
#include "smb_debug.h"
#include "getopt.h"
+/* Always pick a default string */
+#ifdef CONFIG_SMB_NLS_REMOTE
+#define SMB_NLS_REMOTE CONFIG_SMB_NLS_REMOTE
+#else
+#define SMB_NLS_REMOTE ""
+#endif
+
static void smb_delete_inode(struct inode *);
static void smb_put_super(struct super_block *);
static int smb_statfs(struct super_block *, struct statfs *);
@@ -445,7 +452,7 @@
memset(mnt, 0, sizeof(struct smb_mount_data_kernel));
strncpy(mnt->codepage.local_name, CONFIG_NLS_DEFAULT,
SMB_NLS_MAXNAMELEN);
- strncpy(mnt->codepage.remote_name, CONFIG_SMB_NLS_REMOTE,
+ strncpy(mnt->codepage.remote_name, SMB_NLS_REMOTE,
SMB_NLS_MAXNAMELEN);
if (ver == SMB_MOUNT_OLDVERSION) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)