mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
6cc416dad8
with the same functionality as 6.8.3.
17 lines
448 B
Plaintext
17 lines
448 B
Plaintext
*** folder.c.orig Tue Nov 30 20:01:36 1993
|
|
--- uip/folder.c Fri Jul 1 13:11:16 1994
|
|
***************
|
|
*** 551,556 ****
|
|
--- 551,561 ----
|
|
|
|
base = strcmp (name, "./") ? name : name + 2;/* hack */
|
|
|
|
+ /* short-cut to see if directory has any sub-directories */
|
|
+
|
|
+ if (stat (name, &st) != NOTOK && st.st_nlink == 2)
|
|
+ return;
|
|
+
|
|
if ((dd = opendir (name)) == NULL) {
|
|
admonish (name, "unable to read directory ");
|
|
return;
|