Skip to content

Commit

Permalink
getty: fixed double backslash not being printed
Browse files Browse the repository at this point in the history
  • Loading branch information
blmayer authored and landley committed Feb 18, 2025
1 parent 6225bb4 commit 1f2db32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions toys/pending/getty.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ void print_issue(void)
else if (ch == 'r') xputsn(TT.uts.release);
else if (ch == 's') xputsn(TT.uts.sysname);
else if (ch == 'l') xputsn(TT.tty_name);
else if (ch == '\\') xputc(ch);
else printf("<bad escape>");
} else xputc(ch);
}
Expand Down

0 comments on commit 1f2db32

Please sign in to comment.