summaryrefslogtreecommitdiff
path: root/mail/mush/patches/patch-ae
blob: f7c74aa78399468c03afad190caf44eb574fa39c (plain)
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-ae,v 1.1 1998/09/04 18:33:47 christos Exp $

*** old/panels.c	Fri Sep  4 11:22:05 1998
--- panels.c	Fri Sep  4 11:21:28 1998
***************
*** 31,36 ****
--- 31,37 ----
      save_item,		/* saves messages */
      sub_hdr_item[6];	/* display items that just sit there and give help */
  
+ static char		gpat[] = "*/{.,..}";
  #ifndef NO_WALK_MENUS
  Panel
      folder_panel,
***************
*** 461,467 ****
      struct stat 	s_buf;
      char		buf[MAXPATHLEN];
  
!     if (glob(path, "*/{.,..}")) {
  	return NULL;
      }
  
--- 462,468 ----
      struct stat 	s_buf;
      char		buf[MAXPATHLEN];
  
!     if (glob(path, gpat)) {
  	return NULL;
      }
  
***************
*** 708,714 ****
  	sprintf(buf, "%s/{.*,*}", path);
  	if (filexp(buf, &names) > 0) {
  	    for (np = names; np && *np; np++) {
! 		if (!glob(*np, "*/{.,..}"))
  		    add_path_to_menu(item, *np, n);
  	    }
  	    free_vec(names);
--- 709,715 ----
  	sprintf(buf, "%s/{.*,*}", path);
  	if (filexp(buf, &names) > 0) {
  	    for (np = names; np && *np; np++) {
! 		if (!glob(*np, gpat))
  		    add_path_to_menu(item, *np, n);
  	    }
  	    free_vec(names);