Fossil SCM
Tell file_issocket() to always return 0 on Windows builds, as reported in [forum:a41fe3d6d0c97b43|forum post a41fe3d6d0c97b43].
Commit
ba884453e5cf7a2c12ad74b03dd3b31b6d12d6ea7d761b6b1a33131021205a31
Parent
714142737069ca1…
1 file changed
+4
+4
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -236,14 +236,18 @@ | ||
| 236 | 236 | |
| 237 | 237 | /* |
| 238 | 238 | ** Return TRUE if zFilename is a socket. |
| 239 | 239 | */ |
| 240 | 240 | int file_issocket(const char *zFilename){ |
| 241 | +#ifdef _WIN32 | |
| 242 | + return 0; | |
| 243 | +#else | |
| 241 | 244 | if( getStat(zFilename, ExtFILE) ){ |
| 242 | 245 | return 0; /* stat() failed. Return false. */ |
| 243 | 246 | } |
| 244 | 247 | return S_ISSOCK(fx.fileStat.st_mode); |
| 248 | +#endif | |
| 245 | 249 | } |
| 246 | 250 | |
| 247 | 251 | /* |
| 248 | 252 | ** Create a symbolic link named zLinkFile that points to zTargetFile. |
| 249 | 253 | ** |
| 250 | 254 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -236,14 +236,18 @@ | |
| 236 | |
| 237 | /* |
| 238 | ** Return TRUE if zFilename is a socket. |
| 239 | */ |
| 240 | int file_issocket(const char *zFilename){ |
| 241 | if( getStat(zFilename, ExtFILE) ){ |
| 242 | return 0; /* stat() failed. Return false. */ |
| 243 | } |
| 244 | return S_ISSOCK(fx.fileStat.st_mode); |
| 245 | } |
| 246 | |
| 247 | /* |
| 248 | ** Create a symbolic link named zLinkFile that points to zTargetFile. |
| 249 | ** |
| 250 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -236,14 +236,18 @@ | |
| 236 | |
| 237 | /* |
| 238 | ** Return TRUE if zFilename is a socket. |
| 239 | */ |
| 240 | int file_issocket(const char *zFilename){ |
| 241 | #ifdef _WIN32 |
| 242 | return 0; |
| 243 | #else |
| 244 | if( getStat(zFilename, ExtFILE) ){ |
| 245 | return 0; /* stat() failed. Return false. */ |
| 246 | } |
| 247 | return S_ISSOCK(fx.fileStat.st_mode); |
| 248 | #endif |
| 249 | } |
| 250 | |
| 251 | /* |
| 252 | ** Create a symbolic link named zLinkFile that points to zTargetFile. |
| 253 | ** |
| 254 |