Check-in [f7cedf8636]
Overview
Comment:Filed 1.6
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | 1.6
Files: files | file ages | folders
SHA1: f7cedf86368b1b640c1c3b9f5d448cfc6fbb9465
User & Date: rkeene on 2014-02-12 17:56:07
Other Links: manifest | tags
Context
2014-02-12
17:56
Post release version increment check-in: 3a2967949a user: rkeene tags: trunk
17:56
Filed 1.6 check-in: f7cedf8636 user: rkeene tags: trunk, 1.6
17:42
Fixed NULL pointer dereference and also possible buffer overflow processing HTTP request, created in [8cb189c633] check-in: dd737cd8c7 user: rkeene tags: trunk
Changes

Modified filed.1 from [cfb720954f] to [93dadcba78].

1
2
3
4
5
6
7
8
9
.PU
.TH FILED 1 "11 Feb 14" "filed 1.5"
.SH NAME
filed \- serve files over HTTP
.SH SYNOPSIS
.ll +10
.B filed
.RB [{ \-h | \-\-help }]
.RB [{ \-d | \-\-daemon }]

|







1
2
3
4
5
6
7
8
9
.PU
.TH FILED 1 "12 Feb 14" "filed 1.6"
.SH NAME
filed \- serve files over HTTP
.SH SYNOPSIS
.ll +10
.B filed
.RB [{ \-h | \-\-help }]
.RB [{ \-d | \-\-daemon }]
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.B -l (or --log)
Specifies a filename to open for writing log entries.  Log
entries are made for various stages in transfering files.
The log file is opened before switching users (see "-u")
and root directories (see "-r").  The log file is never
closed so log rotation without stopping the daemon is will
not work.  The value of "-" indicates that standard output
should be used for logging.  If the filename begins with a "|"
then a process is started and used for logging instead of a
file.

.TP
.B -u (or --user)
Specifies the user to switch user IDs to before servicing
requests.  The default is not change user IDs.

.TP







|
|
|







75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.B -l (or --log)
Specifies a filename to open for writing log entries.  Log
entries are made for various stages in transfering files.
The log file is opened before switching users (see "-u")
and root directories (see "-r").  The log file is never
closed so log rotation without stopping the daemon is will
not work.  The value of "-" indicates that standard output
should be used for logging.  If the filename begins with a
pipe ("|") then a process is started and used for logging
instead of a file.

.TP
.B -u (or --user)
Specifies the user to switch user IDs to before servicing
requests.  The default is not change user IDs.

.TP

Modified filed.c from [64aa094753] to [a26989d41c].

16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <time.h>
#include <pwd.h>

/* Compile time constants */
#define FILED_VERSION "1.5"
#define FILED_SENDFILE_MAX 16777215
#define FILED_MAX_FAILURE_COUNT 30
#define FILED_DEFAULT_TYPE "application/octet-stream"
#define FILED_PATH_BUFFER_SIZE 1010

/* Default values */
#define PORT 80







|







16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <time.h>
#include <pwd.h>

/* Compile time constants */
#define FILED_VERSION "1.6"
#define FILED_SENDFILE_MAX 16777215
#define FILED_MAX_FAILURE_COUNT 30
#define FILED_DEFAULT_TYPE "application/octet-stream"
#define FILED_PATH_BUFFER_SIZE 1010

/* Default values */
#define PORT 80