Skip to content

Commit 7db734b

Browse files
committed
fix tty file permissions
Signed-off-by: Stas Kelvich <stanconn@gmail.com>
1 parent df82006 commit 7db734b

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)