florp = strdup ( pw -> pw_dir );
home = florp;
- //printf ( " home is %s (from %u)\n", home, b.ut_type );
+ printf ( " DEBUG: home is %s (from %u)\n", home, b.ut_type );
} // passwd entry matches the utmp entry
return ( s ); // can't succeed
}
+ printf ( "DEBUG: entering while (%s)\n", s );
+
while ( ( p = strchr ( s, '~' ) ) ) {
+ printf ( "DEBUG: within while (%s)\n", s );
char *temp = malloc ( strlen ( s ) + strlen ( home ) + 1 );
memset ( temp, '\0', strlen ( s ) + strlen ( home ) + 1 );
// copy in stuff prior to ~
s = temp;
} // while finding matches
- //printf ( "expand tilde OUT: '%s'\n", s );
+ printf ( "DEBUG: expand tilde OUT: '%s'\n", s );
return ( s );
}