1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Fix 'dir .' (works as dir *)

Submitted by:	Makoto MATSUSHITA <matusita@jp.freebsd.org>
This commit is contained in:
Andrey A. Chernov 1999-10-24 11:44:34 +00:00
parent 3d78ca78db
commit c1a43345ca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=22599
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/glob.c.dist Tue Oct 5 11:54:42 1999
+++ src/glob.c Thu Oct 21 19:51:03 1999
@@ -107,7 +107,7 @@
fixpath(v);
if (v[0] == '\0')
- v = "*";
+ v = ".";
else if ((strlen(v) > 1) && (v[strlen(v) - 1] == '/'))
v[strlen(v) - 1] = '\0';

View File

@ -0,0 +1,11 @@
--- src/glob.c.dist Tue Oct 5 11:54:42 1999
+++ src/glob.c Thu Oct 21 19:51:03 1999
@@ -107,7 +107,7 @@
fixpath(v);
if (v[0] == '\0')
- v = "*";
+ v = ".";
else if ((strlen(v) > 1) && (v[strlen(v) - 1] == '/'))
v[strlen(v) - 1] = '\0';