Codebase list sysvinit / dcbd902
New upstream version 2.93 Dmitry Bogatov 5 years ago
4 changed file(s) with 19 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
0 sysvinit (2.92) unreleased; urgency=low
0 sysvinit (2.93) released; urgency=low
1
2 [ Jesse Smith ]
3
4 * Fixed typo in pidof which would prevent the -o (omit PID)
5 flag from working.
6 Fixes Debian bug ##913394.
7
8 sysvinit (2.92) released; urgency=low
19
210 [ Jesse Smith ]
311
5866 program. Likewise whether we are talking about the shutdown process
5967 or the specific shutdown program.
6068 Should address Debian bug #374039.
69 * Added patch from Samuel Thibault to make project compile
70 on Hurd branch of Debian.
6171
6272
6373 sysvinit (2.91) world; urgency=low
158158 fd = dirfd(dir);
159159 rewinddir(dir);
160160 while ((dent = readdir(dir))) {
161 char path[PATH_MAX];
161 char *path;
162162 struct stat st;
163163 if (fstatat(fd, dent->d_name, &st, 0) < 0)
164164 continue;
166166 continue;
167167 if (comparedev != st.st_rdev)
168168 continue;
169 if ((size_t)snprintf(path, sizeof(path), "/dev/%s", dent->d_name) >= sizeof(path))
169 if (asprintf(&path, "/dev/%s", dent->d_name) < 0)
170170 continue;
171171 name = realpath(path, NULL);
172 free(path);
172173 break;
173174 }
174175 return name;
10051005 if ((token = getenv("PIDOF_NETFS")) && (strcmp(token,"no") != 0))
10061006 flags |= PIDOF_NETFS;
10071007
1008 while ((opt = getopt(argc,argv,"qhcof:sxn")) != EOF) switch (opt) {
1008 while ((opt = getopt(argc,argv,"qhco:f:sxn")) != EOF) switch (opt) {
10091009 case '?':
10101010 nsyslog(LOG_ERR,"invalid options on command line!\n");
10111011 closelog();
143143 cfsetispeed(tio, ispeed);
144144 cfsetospeed(tio, ospeed);
145145
146 #ifndef __GNU__
146147 tio->c_line = 0;
148 #endif
147149 tio->c_cc[VTIME] = 0;
148150 tio->c_cc[VMIN] = 1;
149151
202204 tio->c_cc[VEOF] = CEOF;
203205 # ifdef VSWTC
204206 tio->c_cc[VSWTC] = _POSIX_VDISABLE;
205 # else
207 # elif defined(VSWTCH)
206208 tio->c_cc[VSWTCH] = _POSIX_VDISABLE;
207209 # endif
208210 tio->c_cc[VSTART] = CSTART;
260262 tio->c_cc[VEOF] = CEOF;
261263 #ifdef VSWTC
262264 tio->c_cc[VSWTC] = _POSIX_VDISABLE;
263 #else
265 #elif defined(VSWTCH)
264266 tio->c_cc[VSWTCH] = _POSIX_VDISABLE;
265267 #endif
266268 tio->c_cc[VSTART] = CSTART;