Fossil SCM

Add support for --extroot on windows.

drh 2020-09-07 20:32 trunk
Commit 8aaaa4f5333bba542ce3b920d6279a927355b29dd262ade92c4fa1a70552b1e4
1 file changed +8 -2
+8 -2
--- src/winhttp.c
+++ src/winhttp.c
@@ -539,14 +539,16 @@
539539
blob_zero(&options);
540540
if( PB("HTTPS") ){
541541
blob_appendf(&options, " --https");
542542
}
543543
if( zBaseUrl ){
544
- blob_appendf(&options, " --baseurl %s", zBaseUrl);
544
+ blob_appendf(&options, " --baseurl ");
545
+ blob_append_escaped_arg(&options, zBaseUrl);
545546
}
546547
if( zNotFound ){
547
- blob_appendf(&options, " --notfound %s", zNotFound);
548
+ blob_appendf(&options, " --notfound ");
549
+ blob_append_escaped_arg(&options, zNotFound);
548550
}
549551
if( zFileGlob ){
550552
blob_appendf(&options, " --files-urlenc %T", zFileGlob);
551553
}
552554
if( g.useLocalauth ){
@@ -556,10 +558,14 @@
556558
blob_appendf(&options, " --th-trace");
557559
}
558560
if( flags & HTTP_SERVER_REPOLIST ){
559561
blob_appendf(&options, " --repolist");
560562
}
563
+ if( g.zExtRoot && g.zExtRoot[0] ){
564
+ blob_appendf(&options, " --extroot");
565
+ blob_append_escaped_arg(&options, g.zExtRoot);
566
+ }
561567
zSkin = skin_in_use();
562568
if( zSkin ){
563569
blob_appendf(&options, " --skin %s", zSkin);
564570
}
565571
#if USE_SEE
566572
--- src/winhttp.c
+++ src/winhttp.c
@@ -539,14 +539,16 @@
539 blob_zero(&options);
540 if( PB("HTTPS") ){
541 blob_appendf(&options, " --https");
542 }
543 if( zBaseUrl ){
544 blob_appendf(&options, " --baseurl %s", zBaseUrl);
 
545 }
546 if( zNotFound ){
547 blob_appendf(&options, " --notfound %s", zNotFound);
 
548 }
549 if( zFileGlob ){
550 blob_appendf(&options, " --files-urlenc %T", zFileGlob);
551 }
552 if( g.useLocalauth ){
@@ -556,10 +558,14 @@
556 blob_appendf(&options, " --th-trace");
557 }
558 if( flags & HTTP_SERVER_REPOLIST ){
559 blob_appendf(&options, " --repolist");
560 }
 
 
 
 
561 zSkin = skin_in_use();
562 if( zSkin ){
563 blob_appendf(&options, " --skin %s", zSkin);
564 }
565 #if USE_SEE
566
--- src/winhttp.c
+++ src/winhttp.c
@@ -539,14 +539,16 @@
539 blob_zero(&options);
540 if( PB("HTTPS") ){
541 blob_appendf(&options, " --https");
542 }
543 if( zBaseUrl ){
544 blob_appendf(&options, " --baseurl ");
545 blob_append_escaped_arg(&options, zBaseUrl);
546 }
547 if( zNotFound ){
548 blob_appendf(&options, " --notfound ");
549 blob_append_escaped_arg(&options, zNotFound);
550 }
551 if( zFileGlob ){
552 blob_appendf(&options, " --files-urlenc %T", zFileGlob);
553 }
554 if( g.useLocalauth ){
@@ -556,10 +558,14 @@
558 blob_appendf(&options, " --th-trace");
559 }
560 if( flags & HTTP_SERVER_REPOLIST ){
561 blob_appendf(&options, " --repolist");
562 }
563 if( g.zExtRoot && g.zExtRoot[0] ){
564 blob_appendf(&options, " --extroot");
565 blob_append_escaped_arg(&options, g.zExtRoot);
566 }
567 zSkin = skin_in_use();
568 if( zSkin ){
569 blob_appendf(&options, " --skin %s", zSkin);
570 }
571 #if USE_SEE
572

Keyboard Shortcuts

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