aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-11-24 04:57:43 +1000
committerGravatar axel <axel@liljencrantz.se>2005-11-24 04:57:43 +1000
commit7d334914f7b0d4689cdc3ab6083696d5962a93ba (patch)
tree1ff9d0c52377e911b6e4920a2235d5d9e3790832 /env.c
parent27a60f465d4dc469c513a270346b3a66151bc34e (diff)
Minor code tweaks
darcs-hash:20051123185743-ac50b-dc35b7f64e5416f3f2749edebd5235abb5bdff98.gz
Diffstat (limited to 'env.c')
-rw-r--r--env.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/env.c b/env.c
index e7fb35d5..578e0350 100644
--- a/env.c
+++ b/env.c
@@ -186,7 +186,7 @@ static void start_fishd()
sb_init( &cmd );
pw = getpwuid(getuid());
- debug( 3, L"Spawning new copy of fishd" );
+ debug( 2, L"Spawning new copy of fishd" );
if( !pw )
{
@@ -352,6 +352,9 @@ void env_init()
al_init( &l );
expand_variable_array( path, &l );
+
+ debug( 3, L"PATH is %ls", path );
+
const wchar_t *path_el[] =
{
@@ -365,6 +368,9 @@ void env_init()
for( j=0; path_el[j]; j++ )
{
int has_el=0;
+
+ debug( 3, L"Check directory %ls", path_el[j] );
+
for( i=0; i<al_get_count( &l); i++ )
{
@@ -381,6 +387,7 @@ void env_init()
if( !has_el )
{
string_buffer_t b;
+ debug( 3, L"directory %ls was missing", path_el[j] );
sb_init( &b );
sb_append2( &b, path,
ARRAY_SEP_STR,
@@ -394,6 +401,8 @@ void env_init()
}
}
+ debug( 3, L"After: PATH is %ls", path );
+
al_foreach( &l, (void (*)(const void *))&free );
al_destroy( &l );