Skip to content

Commit

Permalink
changed {base,dir}name_r to {base,dir}name in src/ls.c for #36
Browse files Browse the repository at this point in the history
  • Loading branch information
Electrux committed May 23, 2020
1 parent 1b99b9a commit 1154bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ls.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ static int _get_stats( const char * path, stat_info_t * stats )
if( stats->lnk_jumps == 1 ) strcpy( stats->lnk_loc, buf );

char jump_dir[ MAX_STR_LEN ];
dirname_r( buf, jump_dir );
strcpy( jump_dir, dirname( buf ) );
char jump_file[ MAX_STR_LEN ];
basename_r( buf, jump_file );
strcpy( jump_file, basename( buf ) );
int cd_res = chdir( jump_dir );
if( cd_res != 0 ) goto dead_link;
int res = get_stats( jump_file, stats );
Expand Down

0 comments on commit 1154bb9

Please sign in to comment.