ALT Linux Bugzilla
– Attachment 722 Details for
Bug 5977
--pidfile option doesn't work
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
моя версия патча
pptpd-1.1.4-b4-alt-pidfile.patch (text/plain), 865 bytes, created by
Denis Ovsienko
on 2005-02-07 17:45:28 MSK
(
hide
)
Description:
моя версия патча
Filename:
MIME Type:
Creator:
Denis Ovsienko
Created:
2005-02-07 17:45:28 MSK
Size:
865 bytes
patch
obsolete
>diff -urN poptop-1.1.4.orig/pptpd.c poptop-1.1.4/pptpd.c >--- poptop-1.1.4.orig/pptpd.c 2003-02-27 13:01:10 +0300 >+++ poptop-1.1.4/pptpd.c 2005-02-07 17:55:37 +0300 >@@ -76,7 +76,7 @@ > static void my_daemon(int argc, char **argv); > #endif > >-static void log_pid(); >+static void log_pid(char *pid_file); > static char *lookup(char *); > > static void showusage(char *prog) >@@ -347,16 +347,16 @@ > ledman_cmd(LEDMAN_CMD_ON, LEDMAN_VPN); > #endif > /* after we have our final pid... */ >- log_pid(); >+ log_pid(pid_file); > > pptp_manager(argc, argv); > return 1; > } > >-static void log_pid() { >+static void log_pid(char *pid_file) { > FILE *f; > pid_t pid; >- char *pidfile = "/var/run/pptpd.pid"; >+ char *pidfile = pid_file ? pid_file : "/var/run/pptpd.pid"; > > pid = getpid(); > if ((f = fopen(pidfile, "w")) == NULL) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5977
: 722