mirror of
https://github.com/swisspol/GCDWebServer.git
synced 2026-05-31 00:00:10 +08:00
Removed -stringByStandardizingPath from path arguments to Mac CLT
This commit is contained in:
+2
-2
@@ -178,10 +178,10 @@ int main(int argc, const char* argv[]) {
|
|||||||
recording = YES;
|
recording = YES;
|
||||||
} else if (!strcmp(argv[i], "-root") && (i + 1 < argc)) {
|
} else if (!strcmp(argv[i], "-root") && (i + 1 < argc)) {
|
||||||
++i;
|
++i;
|
||||||
rootDirectory = [[[NSFileManager defaultManager] stringWithFileSystemRepresentation:argv[i] length:strlen(argv[i])] stringByStandardizingPath];
|
rootDirectory = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:argv[i] length:strlen(argv[i])];
|
||||||
} else if (!strcmp(argv[i], "-tests") && (i + 1 < argc)) {
|
} else if (!strcmp(argv[i], "-tests") && (i + 1 < argc)) {
|
||||||
++i;
|
++i;
|
||||||
testDirectory = [[[NSFileManager defaultManager] stringWithFileSystemRepresentation:argv[i] length:strlen(argv[i])] stringByStandardizingPath];
|
testDirectory = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:argv[i] length:strlen(argv[i])];
|
||||||
} else if (!strcmp(argv[i], "-authenticationMethod") && (i + 1 < argc)) {
|
} else if (!strcmp(argv[i], "-authenticationMethod") && (i + 1 < argc)) {
|
||||||
++i;
|
++i;
|
||||||
authenticationMethod = [NSString stringWithUTF8String:argv[i]];
|
authenticationMethod = [NSString stringWithUTF8String:argv[i]];
|
||||||
|
|||||||
Reference in New Issue
Block a user