On Sep 7, 2011, at 6:53 PM, Stephan Beal wrote:

> On Wed, Sep 7, 2011 at 6:18 PM, Jousef Lofstrom <jou...@bigfoot.com> wrote:
> "invalid home directory: /root"
> 
> 
> That comes from db.c:
> 
>   zHome = getenv("HOME");
> ...
>   if( file_isdir(zHome)!=1 ){
>     fossil_fatal("invalid home directory: %s", zHome);
>   }
> 
> is /root perhaps a symlink to /home/root or some such?
> 
> From file.c, file_isdir() contains:
> 
>  #if !defined(_WIN32)
>   if( g.allowSymlinks ){
>     return rc ? 0 : (S_ISDIR(fileStat.st_mode) && !S_ISLNK(fileStat.st_mode) 
> ? 1 : 2);
>   }else{
>     return rc ? 0 : (S_ISDIR(fileStat.st_mode) ? 1 : 2);    
>   }
> #else

While this doesn't affect the issue in question, thanks for finding this! 
Usages of file_isdir() outside of working directory shouldn't be affected by 
g.allowSymlinks setting. I'll fix this tomorrow.

--
Dmitry Chestnykh

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to