Skip to content

Commit 163c134

Browse files
authored
Merge pull request #291 from kelvich/fix_tty_create
fix tty file permissions
2 parents df82006 + 7db734b commit 163c134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/uart_emul.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ uart_set_backend(struct uart_softc *sc, const char *backend, const char *devname
761761
perror("unlinking autopty file");
762762
goto err;
763763
}
764-
int namefd = open(linkname, O_CREAT | O_WRONLY);
764+
int namefd = open(linkname, O_CREAT | O_WRONLY, 0644);
765765
if (namefd == -1) {
766766
perror("creating autopty file");
767767
goto err;

0 commit comments

Comments
 (0)