Fossil SCM

Allow characters *[]? to appear in filenames. Ticket [46bf4baedce].

drh 2012-11-30 15:52 trunk
Commit 647bb7b79f3c2ac8b79519a57b497bea00a35256
1 file changed +1 -1
+1 -1
--- src/file.c
+++ src/file.c
@@ -523,11 +523,11 @@
523523
/* Unicode character in the range U+D800 - U+DFFF are for
524524
* surrogate pairs, they shouldn't occur in filenames. */
525525
return 0;
526526
}
527527
}
528
- if( c=='\\' || c=='*' || c=='[' || c==']' || c=='?' ){
528
+ if( c=='\\' ){
529529
return 0;
530530
}
531531
if( c=='/' ){
532532
if( z[i+1]=='/' ) return 0;
533533
if( z[i+1]=='.' ){
534534
--- src/file.c
+++ src/file.c
@@ -523,11 +523,11 @@
523 /* Unicode character in the range U+D800 - U+DFFF are for
524 * surrogate pairs, they shouldn't occur in filenames. */
525 return 0;
526 }
527 }
528 if( c=='\\' || c=='*' || c=='[' || c==']' || c=='?' ){
529 return 0;
530 }
531 if( c=='/' ){
532 if( z[i+1]=='/' ) return 0;
533 if( z[i+1]=='.' ){
534
--- src/file.c
+++ src/file.c
@@ -523,11 +523,11 @@
523 /* Unicode character in the range U+D800 - U+DFFF are for
524 * surrogate pairs, they shouldn't occur in filenames. */
525 return 0;
526 }
527 }
528 if( c=='\\' ){
529 return 0;
530 }
531 if( c=='/' ){
532 if( z[i+1]=='/' ) return 0;
533 if( z[i+1]=='.' ){
534

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button