[sr-dev] git:5.1:412ea460: core: spelling fix in error message related to pid/pgid chown

Henning Westerholt hw at skalatan.de
Fri Sep 6 12:14:47 CEST 2019


Module: kamailio
Branch: 5.1
Commit: 412ea460b57f1c84cecd9fe834f51158339e986e
URL: https://github.com/kamailio/kamailio/commit/412ea460b57f1c84cecd9fe834f51158339e986e

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2019-09-06T12:14:31+02:00

core: spelling fix in error message related to pid/pgid chown

(cherry picked from commit 21afc6081c3044b4f754e6a34ea67fd98f2e3af9)

---

Modified: src/core/daemonize.c

---

Diff:  https://github.com/kamailio/kamailio/commit/412ea460b57f1c84cecd9fe834f51158339e986e.diff
Patch: https://github.com/kamailio/kamailio/commit/412ea460b57f1c84cecd9fe834f51158339e986e.patch

---

diff --git a/src/core/daemonize.c b/src/core/daemonize.c
index 98bf04dc78..7301ddc7c8 100644
--- a/src/core/daemonize.c
+++ b/src/core/daemonize.c
@@ -357,7 +357,7 @@ int daemonize(char*  name,  int status_wait)
 			fprintf(pid_stream, "%i\n", (int)pid);
 			fclose(pid_stream);
 			if(chown(pid_file, pid_uid, pid_gid)<0) {
-				LM_ERR("failed to chwon PID file: %s\n", strerror(errno));
+				LM_ERR("failed to chown PID file: %s\n", strerror(errno));
 				goto error;
 			}
 		}
@@ -385,7 +385,7 @@ int daemonize(char*  name,  int status_wait)
 				fprintf(pid_stream, "%i\n", (int)pid);
 				fclose(pid_stream);
 				if(chown(pgid_file, pid_uid, pid_gid)<0) {
-					LM_ERR("failed to chwon PGID file: %s\n", strerror(errno));
+					LM_ERR("failed to chown PGID file: %s\n", strerror(errno));
 					goto error;
 				}
 			}




More information about the sr-dev mailing list