X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fmain.c;h=f5614b972a40191c46727b727151f1b45916999d;hp=214af7723cc7f708e67340584cdce7d9ff5b3a12;hb=a83d9887bdc27bcbf285a3fd7964d2ddac52b1f5;hpb=c134aa17fcb7a7730ff9e76010cb1eecb51852a7 diff --git a/pppd/main.c b/pppd/main.c index 214af77..f5614b9 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.52 1999/01/19 23:59:39 paulus Exp $"; +static char rcsid[] = "$Id: main.c,v 1.53 1999/02/26 10:38:51 paulus Exp $"; #endif #include @@ -828,7 +828,7 @@ close_tty() restore_tty(ttyfd); if (tty_mode != (mode_t) -1) { - if (fchmod(devnam, tty_mode) != 0) { + if (fchmod(ttyfd, tty_mode) != 0) { /* XXX if devnam is a symlink, this will change the link */ chmod(devnam, tty_mode); }