From 257abc1fc19ce02c432c0baa7af260a50a02dfe3 Mon Sep 17 00:00:00 2001 From: avatar Date: Mon, 5 Dec 2005 19:05:06 +0000 Subject: Recent nmount(2) adoption in mount_smbfs(8) did not flag the "long" option since mount_smbfs(8) assumed long name mounting by default unless "-n long" was explicitly specified. Rather than supplying a "long" option in mount_smbfs(8), this commit brings back the original behaviour by associating SMBFS_MOUNT_NO_LONG with the "nolong" option. This should fix the broken long file names on smbfs people observed recently. Reported by: Vladimir Grebenschikov Reviewed by: phk Tested by: Slawa Olhovchenkov --- sys/fs/smbfs/smbfs_vfsops.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/fs/smbfs') diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index f8ddd42..aa9a8e1 100644 --- a/sys/fs/smbfs/smbfs_vfsops.c +++ b/sys/fs/smbfs/smbfs_vfsops.c @@ -230,9 +230,7 @@ smbfs_mount(struct mount *mp, struct thread *td) smp->sm_dir_mode = (v & (S_IRWXU|S_IRWXG|S_IRWXO)) | S_IFDIR; vfs_flagopt(mp->mnt_optnew, - "long", &smp->sm_flags, SMBFS_MOUNT_NO_LONG); - - smp->sm_flags ^= SMBFS_MOUNT_NO_LONG; + "nolong", &smp->sm_flags, SMBFS_MOUNT_NO_LONG); /* simple_lock_init(&smp->sm_npslock);*/ pc = mp->mnt_stat.f_mntfromname; -- cgit v1.1