Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111621810
D27674.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
952 B
Referenced Files
None
Subscribers
None
D27674.diff
View Options
Index: sbin/sysctl/sysctl.c
===================================================================
--- sbin/sysctl/sysctl.c
+++ sbin/sysctl/sysctl.c
@@ -71,7 +71,7 @@
static int parsefile(const char *);
static int parse(const char *, int);
static int show_var(int *, int, bool);
-static int sysctl_all(int *oid, int len);
+static int sysctl_all(int *, int);
static int name2oid(const char *, int *);
static int strIKtoi(const char *, char **, const char *);
@@ -1227,7 +1227,6 @@
int name1[22], name2[22];
int i, j;
size_t l1, l2;
- bool honor_skip = false;
name1[0] = CTL_SYSCTL;
name1[1] = (oid != NULL || Nflag || dflag || tflag) ?
@@ -1258,12 +1257,11 @@
if (memcmp(name2, oid, len * sizeof(int)) != 0)
return (0);
- i = show_var(name2, l2, honor_skip);
+ i = show_var(name2, l2, true);
if (!i && !bflag)
putchar('\n');
memcpy(name1 + 2, name2, l2 * sizeof(int));
l1 = 2 + l2;
- honor_skip = true;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 3:27 AM (18 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17024434
Default Alt Text
D27674.diff (952 B)
Attached To
Mode
D27674: sbin/sysctl: Always honor skip in sysctl_all
Attached
Detach File
Event Timeline
Log In to Comment