New upstream version 2.93
Dmitry Bogatov
5 years ago
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
|
1 | 9 |
|
2 | 10 |
[ Jesse Smith ]
|
3 | 11 |
|
|
58 | 66 |
program. Likewise whether we are talking about the shutdown process
|
59 | 67 |
or the specific shutdown program.
|
60 | 68 |
Should address Debian bug #374039.
|
|
69 |
* Added patch from Samuel Thibault to make project compile
|
|
70 |
on Hurd branch of Debian.
|
61 | 71 |
|
62 | 72 |
|
63 | 73 |
sysvinit (2.91) world; urgency=low
|
158 | 158 |
fd = dirfd(dir);
|
159 | 159 |
rewinddir(dir);
|
160 | 160 |
while ((dent = readdir(dir))) {
|
161 | |
char path[PATH_MAX];
|
|
161 |
char *path;
|
162 | 162 |
struct stat st;
|
163 | 163 |
if (fstatat(fd, dent->d_name, &st, 0) < 0)
|
164 | 164 |
continue;
|
|
166 | 166 |
continue;
|
167 | 167 |
if (comparedev != st.st_rdev)
|
168 | 168 |
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)
|
170 | 170 |
continue;
|
171 | 171 |
name = realpath(path, NULL);
|
|
172 |
free(path);
|
172 | 173 |
break;
|
173 | 174 |
}
|
174 | 175 |
return name;
|
1005 | 1005 |
if ((token = getenv("PIDOF_NETFS")) && (strcmp(token,"no") != 0))
|
1006 | 1006 |
flags |= PIDOF_NETFS;
|
1007 | 1007 |
|
1008 | |
while ((opt = getopt(argc,argv,"qhcof:sxn")) != EOF) switch (opt) {
|
|
1008 |
while ((opt = getopt(argc,argv,"qhco:f:sxn")) != EOF) switch (opt) {
|
1009 | 1009 |
case '?':
|
1010 | 1010 |
nsyslog(LOG_ERR,"invalid options on command line!\n");
|
1011 | 1011 |
closelog();
|