diff --git a/0001-examples-testd.c-fix-some-typos.patch b/0001-examples-testd.c-fix-some-typos.patch new file mode 100644 index 0000000000000000000000000000000000000000..e620da8ef19f1ff1655c6fedc9939abe0f313b0f --- /dev/null +++ b/0001-examples-testd.c-fix-some-typos.patch @@ -0,0 +1,62 @@ +From a0db47669967975f5a7fd48ffa581539effdcfca Mon Sep 17 00:00:00 2001 +From: hubin +Date: Tue, 31 May 2022 14:36:28 +0800 +Subject: [PATCH] examples/testd.c: fix some typos + +Signed-off-by: hubin +--- + examples/testd.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/examples/testd.c b/examples/testd.c +index 6557dff..3a8650e 100644 +--- a/examples/testd.c ++++ b/examples/testd.c +@@ -47,7 +47,7 @@ int main(int argc, char *argv[]) { + return 1; + } + +- /* Set indetification string for the daemon for both syslog and PID file */ ++ /* Set indentification string for the daemon for both syslog and PID file */ + daemon_pid_file_ident = daemon_log_ident = daemon_ident_from_argv0(argv[0]); + + /* Check if we are called with -k parameter */ +@@ -63,7 +63,7 @@ int main(int argc, char *argv[]) { + return ret < 0 ? 1 : 0; + } + +- /* Check that the daemon is not rung twice a the same time */ ++ /* Check that the daemon is not running twice at the same time */ + if ((pid = daemon_pid_file_is_running()) >= 0) { + daemon_log(LOG_ERR, "Daemon already running on PID file %u", pid); + return 1; +@@ -87,7 +87,7 @@ int main(int argc, char *argv[]) { + + /* Wait for 20 seconds for the return value passed from the daemon process */ + if ((ret = daemon_retval_wait(20)) < 0) { +- daemon_log(LOG_ERR, "Could not recieve return value from daemon process: %s", strerror(errno)); ++ daemon_log(LOG_ERR, "Could not receive return value from daemon process: %s", strerror(errno)); + return 255; + } + +@@ -127,7 +127,7 @@ int main(int argc, char *argv[]) { + /* Send OK to parent process */ + daemon_retval_send(0); + +- daemon_log(LOG_INFO, "Sucessfully started"); ++ daemon_log(LOG_INFO, "Successfully started"); + + /* Prepare for select() on the signal fd */ + FD_ZERO(&fds); +@@ -148,7 +148,7 @@ int main(int argc, char *argv[]) { + break; + } + +- /* Check if a signal has been recieved */ ++ /* Check if a signal has been received */ + if (FD_ISSET(fd, &fds2)) { + int sig; + +-- +1.8.3.1 + diff --git a/libdaemon.spec b/libdaemon.spec index 6e6ab5d216cd7c6c06ca3aeb2eb14b8217465769..3b31fe243ddd9ff8b8a8a95888f24815a7bee506 100644 --- a/libdaemon.spec +++ b/libdaemon.spec @@ -1,11 +1,13 @@ Name: libdaemon Version: 0.14 -Release: 20 +Release: 21 Summary: A lightweight daemon framework in C License: LGPLv2+ URL: http://0pointer.de/lennart/projects/libdaemon/ Source0: http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz +Patch0001:0001-examples-testd.c-fix-some-typos.patch + BuildRequires: gcc lynx %description @@ -53,6 +55,12 @@ make check %{_datadir}/doc/%{name}/* %changelog +* Tue May 31 2022 Bin Hu - 0.14-21 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:examples/testd.c: fix some typos + * Fri Oct 18 2019 fangyufa - 0.14-20 - Type:bugfix - ID:NA