Lines 47-52
Link Here
|
47 |
#include <stdlib.h> |
47 |
#include <stdlib.h> |
48 |
#include <string.h> |
48 |
#include <string.h> |
49 |
#include <unistd.h> |
49 |
#include <unistd.h> |
|
|
50 |
#include <vis.h> |
50 |
|
51 |
|
51 |
#include "jailp.h" |
52 |
#include "jailp.h" |
52 |
|
53 |
|
Lines 444-451
Link Here
|
444 |
strcpy(comcs, comstring->s); |
445 |
strcpy(comcs, comstring->s); |
445 |
argc = 0; |
446 |
argc = 0; |
446 |
for (cs = strtok(comcs, " \t\f\v\r\n"); cs && argc < 4; |
447 |
for (cs = strtok(comcs, " \t\f\v\r\n"); cs && argc < 4; |
447 |
cs = strtok(NULL, " \t\f\v\r\n")) |
448 |
cs = strtok(NULL, " \t\f\v\r\n")) { |
|
|
449 |
if (argc <= 1 && strunvis(cs, cs) < 0) { |
450 |
jail_warnx(j, "%s: %s: fstab parse error", |
451 |
j->intparams[comparam]->name, comstring->s); |
452 |
return -1; |
453 |
} |
448 |
argv[argc++] = cs; |
454 |
argv[argc++] = cs; |
|
|
455 |
} |
449 |
if (argc == 0) |
456 |
if (argc == 0) |
450 |
return 0; |
457 |
return 0; |
451 |
if (argc < 3) { |
458 |
if (argc < 3) { |