View | Details | Raw Unified | Return to bug 211954
Collapse All | Expand All

(-)sbin/badsect/badsect.c (+3 lines)
Lines 62-67 Link Here
62
#include <errno.h>
62
#include <errno.h>
63
#include <dirent.h>
63
#include <dirent.h>
64
#include <fcntl.h>
64
#include <fcntl.h>
65
#include <locale.h>
65
#include <libufs.h>
66
#include <libufs.h>
66
#include <paths.h>
67
#include <paths.h>
67
#include <stdio.h>
68
#include <stdio.h>
Lines 95-100 Link Here
95
	char name[2 * MAXPATHLEN];
96
	char name[2 * MAXPATHLEN];
96
	char *name_dir_end;
97
	char *name_dir_end;
97
98
99
	setlocale(LC_ALL, "");
100
98
	if (argc < 3)
101
	if (argc < 3)
99
		usage();
102
		usage();
100
	if (chdir(argv[1]) < 0 || stat(".", &stbuf) < 0)
103
	if (chdir(argv[1]) < 0 || stat(".", &stbuf) < 0)

Return to bug 211954