[Samba] short preserve case

William Jojo jojowil at hvcc.edu
Wed Mar 24 21:39:37 GMT 2004




On 3.0.2 and 3.0.3pre1 (AIX 5.2), we are having an issue here short names
are not consistently lower-cased with winXP/SP1 client authed as the
listed admin user or any other valid user. Samba compiled with
-D_ALL_SOURCE and -D_LINUX_SOURCE_COMPAT. Later in the show just
-D_ALL_SOURCE.


stanza is as follows...


[x04shr]
  browseable = no
  comment = Summer 2004 DEVELOPMENT Share
  path = /x04shr
  writeable = yes
  guest ok = no
  admin users = testxp
  valid users = testxp robotest webberob test1 test2 test3 test4 test5
test6 tes
t7 test8 test9
  oplocks = no
  level2 oplocks = no
  short preserve case = no
#  preserve case = yes
#  default case = lower
#  mangled names = no




Log level 4 shows this successful trans:

[2004/03/24 15:51:52, 3] smbd/reply.c:reply_mv(3723)
  reply_mv : \New Folder -> \CACA
[2004/03/24 15:51:52, 3] lib/util.c:unix_clean_name(580)
  unix_clean_name [/New Folder]
[2004/03/24 15:51:52, 3] lib/util.c:unix_clean_name(580)
  unix_clean_name [/CACA]
[2004/03/24 15:51:52, 3] smbd/reply.c:rename_internals(3515)
  rename_internals: case_sensitive = 0, case_preserve = 1, short case
preserve = 0, directory = ./New Folder, newname = ./caca,
newname_last_component = caca, is_8_3 = 0
[2004/03/24 15:51:52, 3] smbd/reply.c:rename_internals(3609)
  rename_internals: succeeded doing rename on ./New Folder -> ./caca


and this failed....one directory below the successfule one.


[2004/03/24 15:55:33, 3] smbd/reply.c:reply_mv(3723)
  reply_mv : \xpapps\New Folder -> \xpapps\CACA
[2004/03/24 15:55:33, 3] lib/util.c:unix_clean_name(580)
  unix_clean_name [/xpapps/New Folder]
[2004/03/24 15:55:33, 3] lib/util.c:unix_clean_name(580)
  unix_clean_name [/xpapps/CACA]
[2004/03/24 15:55:33, 3] smbd/reply.c:rename_internals(3515)
  rename_internals: case_sensitive = 0, case_preserve = 1, short case
preserve = 0, directory = xpapps/New Folder, newname = xpapps/CACA,
newname_last_component = CACA, is_8_3 = 0




recompiled with -D_ALL_SOURCE only.



success...


[2004/03/24 16:17:12, 3] smbd/reply.c:reply_mv(3723)
  reply_mv : \New Folder -> \CACA
[2004/03/24 16:17:12, 3] lib/util.c:unix_clean_name(580)
  unix_clean_name [/New Folder]
[2004/03/24 16:17:12, 3] lib/util.c:unix_clean_name(580)
  unix_clean_name [/CACA]
[2004/03/24 16:17:12, 3] smbd/reply.c:rename_internals(3515)
  rename_internals: case_sensitive = 0, case_preserve = 1, short case
preserve = 0, directory = ./New Folder, newname = ./caca,
newname_last_component = caca, is_8_3 = 0
[2004/03/24 16:17:12, 3] smbd/reply.c:rename_internals(3609)
  rename_internals: succeeded doing rename on ./New Folder -> ./caca


not so successful...


[2004/03/24 16:19:08, 3] smbd/reply.c:reply_mv(3723)
  reply_mv : \xpapps\New Folder -> \xpapps\CACA
[2004/03/24 16:19:08, 3] lib/util.c:unix_clean_name(580)
  unix_clean_name [/xpapps/New Folder]
[2004/03/24 16:19:08, 3] lib/util.c:unix_clean_name(580)
  unix_clean_name [/xpapps/CACA]
[2004/03/24 16:19:08, 3] smbd/reply.c:rename_internals(3515)
  rename_internals: case_sensitive = 0, case_preserve = 1, short case
preserve = 0, directory = xpapps/New Folder, newname = xpapps/CACA,
newname_last_component = CACA, is_8_3 = 0
[2004/03/24 16:19:08, 3] smbd/reply.c:rename_internals(3609)
  rename_internals: succeeded doing rename on xpapps/New Folder ->
xpapps/CACA




Can I provide any more info?


Regards,

Bill


More information about the samba mailing list