Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174464676
D19105.id53653.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19105.id53653.diff
View Options
Index: usr.sbin/newsyslog/newsyslog.c
===================================================================
--- usr.sbin/newsyslog/newsyslog.c
+++ usr.sbin/newsyslog/newsyslog.c
@@ -809,7 +809,6 @@
struct include_entry *inc;
int gmatch, fnres;
- defconf = NULL;
STAILQ_INIT(&inclist);
filelist = malloc(sizeof(struct cflist));
@@ -841,7 +840,7 @@
if (verbose)
printf("Processing %s\n", inc->file);
- parse_file(f, filelist, globlist, defconf, &inclist);
+ parse_file(f, filelist, globlist, NULL, &inclist);
(void) fclose(f);
}
@@ -855,25 +854,19 @@
if (*files == NULL) {
expand_globs(filelist, globlist);
free_clist(globlist);
- if (defconf != NULL)
- free_entry(defconf);
return (filelist);
- /* NOTREACHED */
}
/*
* If newsyslog was given a specific list of files to process,
* it may be that some of those files were not listed in any
* config file. Those unlisted files should get the default
- * rotation action. First, create the default-rotation action
- * if none was found in a system config file.
+ * rotation action. First, create the default-rotation action.
*/
- if (defconf == NULL) {
- defconf = init_entry(DEFAULT_MARKER, NULL);
- defconf->numlogs = 3;
- defconf->trsize = 50;
- defconf->permissions = S_IRUSR|S_IWUSR;
- }
+ defconf = init_entry(DEFAULT_MARKER, NULL);
+ defconf->numlogs = 3;
+ defconf->trsize = 50;
+ defconf->permissions = S_IRUSR|S_IWUSR;
/*
* If newsyslog was run with a list of specific filenames,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 4, 11:23 AM (1 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40185771
Default Alt Text
D19105.id53653.diff (1 KB)
Attached To
Mode
D19105: CID 1008620: Logically dead code in newsyslog.c
Attached
Detach File
Event Timeline
Log In to Comment