Package: freebsd-utils / 10.1~svn273304-1

016_swapon.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- a/src/sbin/swapon/swapon.c
+++ b/src/sbin/swapon/swapon.c
@@ -87,6 +87,8 @@
 	int sflag, lflag, late, hflag;
 	const char *etc_fstab;
 
+	setprogname (argv[0]);
+
 	sflag = lflag = late = hflag = 0;
 	if ((ptr = strrchr(argv[0], '/')) == NULL)
 		ptr = argv[0];
@@ -98,7 +100,7 @@
 	
 	doall = 0;
 	etc_fstab = NULL;
-	while ((ch = getopt(argc, argv, "AadghklLmqsUF:")) != -1) {
+	while ((ch = getopt(argc, argv, "AadghklLmqsUF:ve")) != -1) {
 		switch(ch) {
 		case 'A':
 			if (which_prog == SWAPCTL) {
@@ -154,6 +156,9 @@
 		case 'F':
 			etc_fstab = optarg;
 			break;
+		case 'v':
+		case 'e':
+			break;
 		case '?':
 		default:
 			usage();