sysctl: fix crash -- thanks Steinar Gunderson #423704
This commit is contained in:
parent
805d426d07
commit
7ed102fd76
1
NEWS
1
NEWS
@ -5,6 +5,7 @@ ps: man page less ambiguous
|
|||||||
top: normal exit code should be 0 #341272 #354255
|
top: normal exit code should be 0 #341272 #354255
|
||||||
pgrep: usage error should exit with 2 #413383
|
pgrep: usage error should exit with 2 #413383
|
||||||
vmstat: use EXIT_FAILURE -- thanks Yoshio Nakamura #425492
|
vmstat: use EXIT_FAILURE -- thanks Yoshio Nakamura #425492
|
||||||
|
sysctl: fix crash -- thanks Steinar Gunderson #423704
|
||||||
|
|
||||||
procps-3.2.6 --> procps-3.2.7
|
procps-3.2.6 --> procps-3.2.7
|
||||||
|
|
||||||
|
11
TODO
11
TODO
@ -37,13 +37,20 @@ ones get filled in with something logical -- entries must never be deleted!
|
|||||||
|
|
||||||
Add all the stuff Solaris has. This would also replace ptrace.
|
Add all the stuff Solaris has. This would also replace ptrace.
|
||||||
|
|
||||||
|
---------------------- watch --------------------------
|
||||||
|
|
||||||
|
Tolerate UTF-8.
|
||||||
|
|
||||||
|
Tolerate color, bold, underline, etc. #129334
|
||||||
|
|
||||||
|
Tolerate stderr. #420377 #155227 #225549
|
||||||
|
|
||||||
---------------------- w --------------------------
|
---------------------- w --------------------------
|
||||||
|
|
||||||
The LOGIN@ column sometimes has a space in it. This makes correct
|
The LOGIN@ column sometimes has a space in it. This makes correct
|
||||||
scripting difficult.
|
scripting difficult.
|
||||||
|
|
||||||
Verify that DNS control does not give a user the power to specify
|
Time formats are demented.
|
||||||
arbitrary data for the FROM column. (could set root's VGA color map!)
|
|
||||||
|
|
||||||
---------------------- vmstat --------------------------
|
---------------------- vmstat --------------------------
|
||||||
|
|
||||||
|
2
sysctl.c
2
sysctl.c
@ -135,7 +135,7 @@ static int ReadSetting(const char *restrict const name) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* used to open the file */
|
/* used to open the file */
|
||||||
tmpname = malloc(strlen(name)+strlen(PROC_PATH)+1);
|
tmpname = malloc(strlen(name)+strlen(PROC_PATH)+2);
|
||||||
strcpy(tmpname, PROC_PATH);
|
strcpy(tmpname, PROC_PATH);
|
||||||
strcat(tmpname, name);
|
strcat(tmpname, name);
|
||||||
slashdot(tmpname+strlen(PROC_PATH),'.','/'); /* change . to / */
|
slashdot(tmpname+strlen(PROC_PATH),'.','/'); /* change . to / */
|
||||||
|
Loading…
Reference in New Issue
Block a user