mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Change permissions on /etc/ppp/ppp.conf to 0640.
This commit is contained in:
parent
1dd418124c
commit
c47524e783
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44669
@ -4,7 +4,7 @@
|
||||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: network.c,v 1.33 1998/11/15 09:06:20 jkh Exp $
|
||||
* $Id: network.c,v 1.34 1999/02/05 22:15:51 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
@ -256,6 +256,8 @@ startPPP(Device *devp)
|
||||
fprintf(fp, " set timeout 0\n");
|
||||
fprintf(fp, " enable dns\n");
|
||||
fprintf(fp, " set log local phase\n");
|
||||
if (fchmod(fileno(fp), 0640) != 0)
|
||||
msgConfirm("Warning: Failed to fix permissions on /etc/ppp/ppp.conf !");
|
||||
fclose(fp);
|
||||
|
||||
if (!Fake && !file_readable("/dev/tun0") && mknod("/dev/tun0", 0600 | S_IFCHR, makedev(52, 0))) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: network.c,v 1.33 1998/11/15 09:06:20 jkh Exp $
|
||||
* $Id: network.c,v 1.34 1999/02/05 22:15:51 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
@ -256,6 +256,8 @@ startPPP(Device *devp)
|
||||
fprintf(fp, " set timeout 0\n");
|
||||
fprintf(fp, " enable dns\n");
|
||||
fprintf(fp, " set log local phase\n");
|
||||
if (fchmod(fileno(fp), 0640) != 0)
|
||||
msgConfirm("Warning: Failed to fix permissions on /etc/ppp/ppp.conf !");
|
||||
fclose(fp);
|
||||
|
||||
if (!Fake && !file_readable("/dev/tun0") && mknod("/dev/tun0", 0600 | S_IFCHR, makedev(52, 0))) {
|
||||
|
Loading…
Reference in New Issue
Block a user