Subject: kern/2251: single quotes in msdos filenames do not show up
To: None <gnats-bugs@NetBSD.ORG>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: netbsd-bugs
Date: 03/24/1996 01:29:45
>Number:         2251
>Category:       kern
>Synopsis:       single quotes in msdos filenames do not show up?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 24 01:50:01 1996
>Last-Modified:
>Originator:     John Kohl
>Organization:
NetBSD Kernel Hackers `R` Us
>Release:        -current as of 03/23/96
>Environment:
	
System: NetBSD pattern 1.1B NetBSD 1.1B (PATTERN) #2: Thu Mar 21 19:14:44 EST 1996 jtk@pattern:/u3/NetBSD-current/src/sys/arch/i386/compile/PATTERN i386


>Description:
	something in msdosfs does not like single quotes in file names,
although it is apparently a legal file name in MS-DOS.  For example, I
have these files from the SoundBlaster installation diskettes, and I can
see the name in a readdir() but I cannot access the file:

# ls
air.org         country.org     king.org        qing.org        susanna.org
allnight.org    demo.org        lomond.org      rockabye.org    swanee.org
arirang.org     farmer.org      london.org      rois.org        thegood.org
ashbush.org     frosty.org      longago.org     rowboat.org     tourelay.org
athome.org      gipsy.org       marylamb.org    ruincity.org    town.org
auldlang.org    glory.org       mice.org        rye.org         turkeyin.org
bicycle.org     goodking.org    midnight.org    sailor.org      twilight.org
birthday.org    gopak.org       mulberry.org    saints.org      twinkle.org
bluebell.org    halls.org       noel.org        santa.org       valley.org
campg.org       homeswee.org    ohcome.org      she'llbe.org    volga.org
carmen.org      i'vebeen.org    ohwhere.org     sheep.org       washer.org
chaconne.org    ifyouare.org    oldman.org      ships.org       wewish.org
chorus.org      indian.org      orient.org      silentn.org     yankee.org
christ.org      jfarmer.org     planting.org    sixpence.org    yellow.org
christma.org    jingle.org      potong.org      sleeping.org
clementm.org    joy.org         pro-org.exe     sunshine.org
clips.org       kettleon.org    pwdoodle.org    surprise.org
# ls -l
ls: i'vebeen.org: No such file or directory
ls: she'llbe.org: No such file or directory
total 206
-rwxr-xr-x  1 jtk  staff    972 Mar 24 01:21 air.org
-rwxr-xr-x  1 jtk  staff    714 Mar 24 01:21 allnight.org
-rwxr-xr-x  1 jtk  staff    618 Mar 24 01:21 arirang.org
-rwxr-xr-x  1 jtk  staff    784 Mar 24 01:21 ashbush.org
-rwxr-xr-x  1 jtk  staff    819 Mar 24 01:21 athome.org
-rwxr-xr-x  1 jtk  staff    842 Mar 24 01:21 auldlang.org
-rwxr-xr-x  1 jtk  staff    868 Mar 24 01:21 bicycle.org
-rwxr-xr-x  1 jtk  staff    486 Mar 24 01:21 birthday.org
-rwxr-xr-x  1 jtk  staff    799 Mar 24 01:21 bluebell.org
-rwxr-xr-x  1 jtk  staff    860 Mar 24 01:21 campg.org
-rwxr-xr-x  1 jtk  staff    943 Mar 24 01:21 carmen.org
-rwxr-xr-x  1 jtk  staff    999 Mar 24 01:21 chaconne.org
-rwxr-xr-x  1 jtk  staff    504 Mar 24 01:21 chorus.org
-rwxr-xr-x  1 jtk  staff    707 Mar 24 01:21 christ.org
-rwxr-xr-x  1 jtk  staff    625 Mar 24 01:21 christma.org
-rwxr-xr-x  1 jtk  staff    372 Mar 24 01:21 clementm.org
-rwxr-xr-x  1 jtk  staff    841 Mar 24 01:21 clips.org
-rwxr-xr-x  1 jtk  staff    755 Mar 24 01:21 country.org
-rwxr-xr-x  1 jtk  staff    587 Mar 24 01:21 demo.org
-rwxr-xr-x  1 jtk  staff    827 Mar 24 01:21 farmer.org
-rwxr-xr-x  1 jtk  staff   1313 Mar 24 01:21 frosty.org
-rwxr-xr-x  1 jtk  staff    976 Mar 24 01:21 gipsy.org
-rwxr-xr-x  1 jtk  staff    787 Mar 24 01:21 glory.org
-rwxr-xr-x  1 jtk  staff    692 Mar 24 01:21 goodking.org
-rwxr-xr-x  1 jtk  staff    499 Mar 24 01:21 gopak.org
-rwxr-xr-x  1 jtk  staff    754 Mar 24 01:21 halls.org
-rwxr-xr-x  1 jtk  staff   1095 Mar 24 01:21 homeswee.org
-rwxr-xr-x  1 jtk  staff    485 Mar 24 01:21 ifyouare.org
-rwxr-xr-x  1 jtk  staff    376 Mar 24 01:21 indian.org
-rwxr-xr-x  1 jtk  staff    492 Mar 24 01:21 jfarmer.org
-rwxr-xr-x  1 jtk  staff    957 Mar 24 01:21 jingle.org
-rwxr-xr-x  1 jtk  staff    587 Mar 24 01:21 joy.org
-rwxr-xr-x  1 jtk  staff    462 Mar 24 01:21 kettleon.org
-rwxr-xr-x  1 jtk  staff    643 Mar 24 01:21 king.org
-rwxr-xr-x  1 jtk  staff    502 Mar 24 01:21 lomond.org
-rwxr-xr-x  1 jtk  staff    380 Mar 24 01:21 london.org
-rwxr-xr-x  1 jtk  staff    746 Mar 24 01:21 longago.org
-rwxr-xr-x  1 jtk  staff    371 Mar 24 01:21 marylamb.org
-rwxr-xr-x  1 jtk  staff    572 Mar 24 01:21 mice.org
-rwxr-xr-x  1 jtk  staff    800 Mar 24 01:21 midnight.org
-rwxr-xr-x  1 jtk  staff    576 Mar 24 01:21 mulberry.org
-rwxr-xr-x  1 jtk  staff   1014 Mar 24 01:21 noel.org
-rwxr-xr-x  1 jtk  staff    851 Mar 24 01:21 ohcome.org
-rwxr-xr-x  1 jtk  staff    604 Mar 24 01:21 ohwhere.org
-rwxr-xr-x  1 jtk  staff    299 Mar 24 01:21 oldman.org
-rwxr-xr-x  1 jtk  staff    857 Mar 24 01:21 orient.org
-rwxr-xr-x  1 jtk  staff    549 Mar 24 01:21 planting.org
-rwxr-xr-x  1 jtk  staff    633 Mar 24 01:21 potong.org
-rwxr-xr-x  1 jtk  staff  48280 Mar 24 01:21 pro-org.exe
-rwxr-xr-x  1 jtk  staff    921 Mar 24 01:21 pwdoodle.org
-rwxr-xr-x  1 jtk  staff    776 Mar 24 01:21 qing.org
-rwxr-xr-x  1 jtk  staff    467 Mar 24 01:21 rockabye.org
-rwxr-xr-x  1 jtk  staff    791 Mar 24 01:21 rois.org
-rwxr-xr-x  1 jtk  staff    510 Mar 24 01:21 rowboat.org
-rwxr-xr-x  1 jtk  staff    906 Mar 24 01:21 ruincity.org
-rwxr-xr-x  1 jtk  staff    548 Mar 24 01:21 rye.org
-rwxr-xr-x  1 jtk  staff    938 Mar 24 01:21 sailor.org
-rwxr-xr-x  1 jtk  staff    494 Mar 24 01:21 saints.org
-rwxr-xr-x  1 jtk  staff    587 Mar 24 01:21 santa.org
-rwxr-xr-x  1 jtk  staff    739 Mar 24 01:21 sheep.org
-rwxr-xr-x  1 jtk  staff    413 Mar 24 01:21 ships.org
-rwxr-xr-x  1 jtk  staff    621 Mar 24 01:21 silentn.org
-rwxr-xr-x  1 jtk  staff    390 Mar 24 01:21 sixpence.org
-rwxr-xr-x  1 jtk  staff    404 Mar 24 01:21 sleeping.org
-rwxr-xr-x  1 jtk  staff    507 Mar 24 01:21 sunshine.org
-rwxr-xr-x  1 jtk  staff    858 Mar 24 01:21 surprise.org
-rwxr-xr-x  1 jtk  staff    794 Mar 24 01:21 susanna.org
-rwxr-xr-x  1 jtk  staff    818 Mar 24 01:21 swanee.org
-rwxr-xr-x  1 jtk  staff    909 Mar 24 01:21 thegood.org
-rwxr-xr-x  1 jtk  staff    524 Mar 24 01:21 tourelay.org
-rwxr-xr-x  1 jtk  staff    710 Mar 24 01:21 town.org
-rwxr-xr-x  1 jtk  staff    788 Mar 24 01:21 turkeyin.org
-rwxr-xr-x  1 jtk  staff    749 Mar 24 01:21 twilight.org
-rwxr-xr-x  1 jtk  staff    551 Mar 24 01:21 twinkle.org
-rwxr-xr-x  1 jtk  staff    871 Mar 24 01:21 valley.org
-rwxr-xr-x  1 jtk  staff    833 Mar 24 01:21 volga.org
-rwxr-xr-x  1 jtk  staff    823 Mar 24 01:21 washer.org
-rwxr-xr-x  1 jtk  staff    336 Mar 24 01:21 wewish.org
-rwxr-xr-x  1 jtk  staff    478 Mar 24 01:21 yankee.org
-rwxr-xr-x  1 jtk  staff    663 Mar 24 01:21 yellow.org


	I looked briefly at msdosfs_lookup.c and msdosfs_conv.c and
didn't see any obvious culprits.

>How-To-Repeat:
Under DOS, create a file with a ' in the name.
Then under NetBSD mount the disk (use -9 or -s option)
look at the file
>Fix:
>Audit-Trail:
>Unformatted: