Removed old original source file that was left behind by
patch action. Fixed typos in source code, comments, manual pages, and changelog. Corrections provided by Jens Schleusener of FOSSIES (fossies.org).
This commit is contained in:
@@ -142,7 +142,7 @@ err:
|
||||
#endif /* __linux__ */
|
||||
|
||||
/*
|
||||
* Search below /dev for the characer device in
|
||||
* Search below /dev for the character device in
|
||||
* the local `dev_t comparedev' variable.
|
||||
*/
|
||||
static dev_t comparedev;
|
||||
|
||||
@@ -58,7 +58,7 @@ char *v_ifdown = "@(#)ifdown.c 1.11 02-Jun-1998 miquels@cistron.nl";
|
||||
* First, we find all shaper devices and down them. Then we
|
||||
* down all real interfaces. This is because the comment in the
|
||||
* shaper driver says "if you down the shaper device before the
|
||||
* attached inerface your computer will follow".
|
||||
* attached interface your computer will follow".
|
||||
*/
|
||||
int ifdown(void)
|
||||
{
|
||||
|
||||
@@ -541,7 +541,7 @@ int receive_state(int fd)
|
||||
__attribute__ ((format (printf, 1, 2)))
|
||||
#endif
|
||||
#endif
|
||||
/* This function already exists on FreeBSD. No need to delcare it. */
|
||||
/* This function already exists on FreeBSD. No need to declare it. */
|
||||
#ifndef __FreeBSD__
|
||||
static int setproctitle(char *fmt, ...)
|
||||
{
|
||||
@@ -737,7 +737,7 @@ void coredump(void)
|
||||
|
||||
/*
|
||||
* OOPS: segmentation violation!
|
||||
* If we have the info, print where it occured.
|
||||
* If we have the info, print where it occurred.
|
||||
* Then sleep 30 seconds and try to continue.
|
||||
*/
|
||||
static
|
||||
|
||||
@@ -63,7 +63,7 @@ struct init_request_bsd {
|
||||
|
||||
/*
|
||||
* Because of legacy interfaces, "runlevel" and "sleeptime"
|
||||
* aren't in a seperate struct in the union.
|
||||
* aren't in a separate struct in the union.
|
||||
*
|
||||
* The weird sizes are because init expects the whole
|
||||
* struct to be 384 bytes.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*
|
||||
* Riku Meskanen, <mesrik@jyu.fi>
|
||||
* - return all running pids of given program name
|
||||
* - single shot '-s' option for backwards combatibility
|
||||
* - single shot '-s' option for backwards compatibility
|
||||
* - omit pid '-o' option and %PPID (parent pid metavariable)
|
||||
* - syslog() only if not a connected to controlling terminal
|
||||
* - swapped out programs pids are caught now
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* set.h Macros that look like sigaddset et al. but
|
||||
* aren't. They are used to manipulate bits in
|
||||
* an integer, to do our signal bookeeping.
|
||||
* an integer, to do our signal bookkeeping.
|
||||
*
|
||||
* Copyright (C) 2005 Miquel van Smoorenburg.
|
||||
*
|
||||
|
||||
@@ -811,7 +811,7 @@ int main(int argc, char **argv)
|
||||
|
||||
/* Rather than loop and reduce wt (wait time) once per minute,
|
||||
we shall check the current time against the target time.
|
||||
Then calculate the remaining wating time based on the difference
|
||||
Then calculate the remaining waiting time based on the difference
|
||||
between current time and target time.
|
||||
This avoids missing shutdown time (target time) after the
|
||||
computer has been asleep. -- Jesse
|
||||
|
||||
@@ -790,7 +790,7 @@ void sushell(struct passwd *pwd)
|
||||
execl(BINSH, profile ? "-sh" : "sh", NULL);
|
||||
perror(BINSH);
|
||||
|
||||
/* Fall back to staticly linked shell if both the users shell
|
||||
/* Fall back to statically linked shell if both the users shell
|
||||
and /bin/sh failed to execute. */
|
||||
setenv("SHELL", STATICSH, 1);
|
||||
execl(STATICSH, STATICSH, NULL);
|
||||
|
||||
@@ -68,7 +68,7 @@ int main(int argc, char **argv)
|
||||
* we are root or if we're NOT setgid.
|
||||
*/
|
||||
if (geteuid() != 0 && getgid() != getegid()) {
|
||||
fprintf(stderr, "wall -n: not priviliged\n");
|
||||
fprintf(stderr, "wall -n: not privileged\n");
|
||||
exit(1);
|
||||
}
|
||||
remote = 1;
|
||||
|
||||
Reference in New Issue
Block a user