mirror of
https://abf.rosa.ru/djam/samba.git
synced 2025-02-24 01:22:47 +00:00
Add missing newline to debugging output, patch file
This commit is contained in:
parent
2555eed195
commit
99d3e72e87
1 changed files with 25 additions and 0 deletions
25
samba-missing-newline.patch
Normal file
25
samba-missing-newline.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
diff --git a/lib/util/become_daemon.c b/lib/util/become_daemon.c
|
||||
index 688bedd..ea9479c 100644
|
||||
--- a/lib/util/become_daemon.c
|
||||
+++ b/lib/util/become_daemon.c
|
||||
@@ -125,15 +125,15 @@ _PUBLIC_ void exit_daemon(const char *msg, int error)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
-_PUBLIC_ void daemon_ready(const char *daemon)
|
||||
+_PUBLIC_ void daemon_ready(const char *name)
|
||||
{
|
||||
- if (daemon == NULL) {
|
||||
- daemon = "Samba";
|
||||
+ if (name == NULL) {
|
||||
+ name = "Samba";
|
||||
}
|
||||
#ifdef HAVE_SYSTEMD
|
||||
- sd_notifyf(0, "READY=1\nSTATUS=%s: ready to serve connections...", daemon);
|
||||
+ sd_notifyf(0, "READY=1\nSTATUS=%s: ready to serve connections...", name);
|
||||
#endif
|
||||
- DEBUG(0, ("STATUS=daemon '%s' finished starting up and ready to serve connections", daemon));
|
||||
+ DEBUG(0, ("STATUS=daemon '%s' finished starting up and ready to serve connections\n", name));
|
||||
}
|
||||
|
||||
_PUBLIC_ void daemon_status(const char *name, const char *msg)
|
Loading…
Add table
Reference in a new issue