/[packages]/cauldron/dhcpxd/current/SOURCES/dhcpxd-glibc28_fix.diff
ViewVC logotype

Contents of /cauldron/dhcpxd/current/SOURCES/dhcpxd-glibc28_fix.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 75909 - (show annotations) (download)
Wed Mar 23 18:45:44 2011 UTC (13 years ago) by steletch
File size: 1248 byte(s)
imported package dhcpxd
1 --- dhcpclient.cpp 2008-07-02 08:51:25.000000000 -0400
2 +++ dhcpclient.cpp.oden 2008-07-02 08:50:53.000000000 -0400
3 @@ -260,14 +260,14 @@ void DHCPClient::CFork()
4 setsid();
5 int fd;
6
7 - fd = open("/dev/null",O_CREAT|O_APPEND|O_NOCTTY|O_SYNC|O_RDONLY);
8 + fd = open("/dev/null",O_CREAT, 0666|O_APPEND|O_NOCTTY|O_SYNC|O_RDONLY);
9 dup2(fd,0);
10 close(fd);
11
12 char fname[129],sym[129];
13 int n;
14 sprintf(fname,"%s/out",MainPath);
15 - fd = open(fname,O_CREAT|O_APPEND|O_NOCTTY|O_SYNC|O_WRONLY);
16 + fd = open(fname,O_CREAT, 0666|O_APPEND|O_NOCTTY|O_SYNC|O_WRONLY);
17 if(fd != -1) {
18 strcpy(sym,fname);
19 n = readlink(fname,sym,128);
20 @@ -278,7 +278,7 @@ void DHCPClient::CFork()
21 printf("Switch to console %s\n",sym);
22 };
23
24 - fd = open("/dev/tty1",O_CREAT|O_APPEND|O_NOCTTY|O_SYNC|O_WRONLY);
25 + fd = open("/dev/tty1",O_CREAT, 0666|O_APPEND|O_NOCTTY|O_SYNC|O_WRONLY);
26 dup2(fd,2);
27 close(fd);
28

  ViewVC Help
Powered by ViewVC 1.1.30