1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/sysutils/gnomefind/files/patch-ac

21 lines
476 B
Plaintext

--- src/fstype.c 2000/05/26 09:54:55 1.1
+++ src/fstype.c 2000/05/26 10:08:03
@@ -318,7 +318,7 @@
char *p;
if (S_ISLNK (statp->st_mode))
- p = dirname (relpath);
+ readlink(relpath, (p = malloc(MAXPATHLEN)), MAXPATHLEN);
else
p = relpath;
@@ -332,7 +332,7 @@
else
{
#ifdef MFSNAMELEN /* NetBSD. */
- type = xstrdup (fss.f_fstypename);
+ type = strdup (fss.f_fstypename);
#else
type = fstype_to_string (fss.f_type);
#endif