The Samba-Bugzilla – Attachment 9152 Details for
Bug 9049
access() response wrong for nocase mount / broken inode lookup cache.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Fixed python UTF-8 uppercase / lowercase handling.
cifs-nocase-inode-cache-bug-utf8.py (text/x-python), 590 bytes, created by
Jan-Marek Glogowski
on 2013-08-20 17:49:36 UTC
(
hide
)
Description:
Fixed python UTF-8 uppercase / lowercase handling.
Filename:
MIME Type:
Creator:
Jan-Marek Glogowski
Created:
2013-08-20 17:49:36 UTC
Size:
590 bytes
patch
obsolete
>#!/usr/bin/python ># -*- coding: UTF-8 -*- > >import os, sys > >if len(sys.argv) != 2: > print sys.argv[0] + " [cifs folder]" > sys.exit(1) > >basename = os.path.basename(sys.argv[1]) >dirname = os.path.dirname(sys.argv[1]) > >upper = os.path.join( dirname, basename.decode('utf8').upper() ) >lower = os.path.join( dirname, basename.decode('utf8').lower() ) > >try: > os.mkdir(upper) > os.lstat(lower) >finally: > if os.access(upper, os.F_OK): > os.rmdir(upper) > os.access(upper, os.F_OK) > if os.access(lower, os.F_OK): > os.rmdir(lower)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 9049
:
7708
|
7709
|
9068
|
9134
|
9151
| 9152