mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Changed path for cookies, special case for Lynx
SVN revision: 421
This commit is contained in:
parent
6c76370e58
commit
48de918834
27
src/elogd.c
27
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.33 2003/02/27 21:30:26 midas
|
||||||
|
Changed path for cookies, special case for Lynx
|
||||||
|
|
||||||
Revision 1.32 2003/02/27 20:48:15 midas
|
Revision 1.32 2003/02/27 20:48:15 midas
|
||||||
Added '-f <pidfile>' option
|
Added '-f <pidfile>' option
|
||||||
|
|
||||||
@ -3675,18 +3678,22 @@ struct tm *gmt;
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* path for individual logbook */
|
/* bug in lynx: path has to be absolute */
|
||||||
if (getcfg(lb_name, "URL", str))
|
if (strstr(browser, "Lynx/") != NULL)
|
||||||
{
|
{
|
||||||
extract_path(str);
|
/* path for individual logbook */
|
||||||
url_encode(str, sizeof(str));
|
if (getcfg(lb_name, "URL", str))
|
||||||
if (str[0])
|
{
|
||||||
rsprintf(" path=/%s/%s/;", str, lbs->name_enc);
|
extract_path(str);
|
||||||
|
url_encode(str, sizeof(str));
|
||||||
|
if (str[0])
|
||||||
|
rsprintf(" path=/%s/%s;", str, lbs->name_enc);
|
||||||
|
else
|
||||||
|
rsprintf(" path=/%s;", lbs->name_enc);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
rsprintf(" path=/%s/;", lbs->name_enc);
|
rsprintf(" path=/%s;", lbs->name_enc);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
rsprintf(" path=/%s/;", lbs->name_enc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exp = atof(expiration);
|
exp = atof(expiration);
|
||||||
@ -11358,8 +11365,6 @@ struct timeval timeout;
|
|||||||
if (pidfile[0] == 0)
|
if (pidfile[0] == 0)
|
||||||
strcpy(pidfile, PIDFILE);
|
strcpy(pidfile, PIDFILE);
|
||||||
|
|
||||||
printf("Root: %d, pidfile: %s\n", geteuid() == 0, pidfile);
|
|
||||||
|
|
||||||
fd = open(pidfile, O_CREAT | O_RDWR, 0644);
|
fd = open(pidfile, O_CREAT | O_RDWR, 0644);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user