Skip to content

Commit

Permalink
Fix code similar to the one fixed in 350d66f
Browse files Browse the repository at this point in the history
Noticed by @StayPirate, thanks!
  • Loading branch information
jedisct1 committed Oct 25, 2024
1 parent 3b1d341 commit 2bbe0f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,8 +972,8 @@ void donlst(const char *base)

if (*base != 0 && chdir(base) != 0) {
if (*base++ == '-') {
while (!isspace((unsigned char) *base++));
while (isspace((unsigned char) *base++));
while (*base != 0 && !isspace((unsigned char) *base++));
while (*base != 0 && isspace((unsigned char) *base++));
if (*base != 0 && chdir(base) != 0) {
addreply_noformat(550, MSG_STAT_FAILURE2);
return;
Expand Down

0 comments on commit 2bbe0f2

Please sign in to comment.