Changeset 14320 for trunk/libtransmission/platform.c
- Timestamp:
- Jul 8, 2014, 12:08:43 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/platform.c
r14316 r14320 18 18 #include <string.h> 19 19 #include <unistd.h> /* getuid(), close() */ 20 #include <sys/stat.h>21 20 22 21 #ifdef _WIN32 … … 40 39 41 40 #include "transmission.h" 42 #include " session.h"41 #include "file.h" 43 42 #include "list.h" 44 43 #include "log.h" 45 44 #include "platform.h" 45 #include "session.h" 46 46 47 47 /*** … … 400 400 isWebClientDir (const char * path) 401 401 { 402 struct stat sb;403 402 char * tmp = tr_buildPath (path, "index.html", NULL); 404 const int ret = !stat (tmp, &sb);403 const bool ret = tr_sys_path_exists (tmp, NULL); 405 404 tr_logAddInfo (_("Searching for web interface file \"%s\""), tmp); 406 405 tr_free (tmp); … … 491 490 if (s == NULL) /* check calling module place */ 492 491 { 492 char * tmp; 493 493 GetModuleFileName (GetModuleHandle (NULL), dir, sizeof (dir)); 494 s = tr_buildPath (dirname (dir), "Web", NULL); 494 tmp = tr_sys_path_dirname (dir, NULL); 495 s = tr_buildPath (tmp, "Web", NULL); 496 tr_free (tmp); 495 497 if (!isWebClientDir (s)) 496 498 {
Note: See TracChangeset
for help on using the changeset viewer.