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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$NetBSD: patch-ab,v 1.1 1998/09/04 18:33:46 christos Exp $
*** old/file.c Fri Sep 4 11:22:07 1998
--- file.c Fri Sep 4 11:21:28 1998
***************
*** 115,121 ****
return buf; /* it may be wanted for creating */
}
*isdir = -1;
! return sys_errlist[errno];
}
*isdir = ((stat_buf.st_mode & S_IFMT) == S_IFDIR);
return buf;
--- 115,121 ----
return buf; /* it may be wanted for creating */
}
*isdir = -1;
! return (char *) sys_errlist[errno];
}
*isdir = ((stat_buf.st_mode & S_IFMT) == S_IFDIR);
return buf;
***************
*** 396,401 ****
--- 396,402 ----
register int total = 0;
char file[MAXPATHLEN], buf[HDRSIZ], *start = s, c;
register char *p, *b = buf, *fpath;
+ static char gpat[] = "/?*=*?/\052";
do {
if (!(p = get_name_n_addr(s, NULL, file)))
***************
*** 409,415 ****
* \052 is a * for broken compilers that would do a comment.
*/
if (force || *file == '+' || *file == '~' ||
! *file == '|' || *file == '/' && !glob(file, "/?*=*?/\052")) {
int isdir;
/* open either "file" or &file[1] */
if (*file == '|') {
--- 410,416 ----
* \052 is a * for broken compilers that would do a comment.
*/
if (force || *file == '+' || *file == '~' ||
! *file == '|' || *file == '/' && !glob(file, gpat)) {
int isdir;
/* open either "file" or &file[1] */
if (*file == '|') {
|