Displaying 1 result from an estimated 1 matches for "fname_syslimit".
2002 Jun 07
0
problem related to filename length
...,
Hiroshi
-------------- next part --------------
diff -urN rsync-2.5.5.orig/receiver.c rsync-2.5.5/receiver.c
--- rsync-2.5.5.orig/receiver.c Thu Feb 14 03:41:58 2002
+++ rsync-2.5.5/receiver.c Sat Jun 8 03:41:22 2002
@@ -163,10 +163,16 @@
}
}
+#include <sys/vfs.h>
+static inline int fname_syslimit(const char* path) {
+ struct statfs sb;
+ return !statfs(path,&sb) ? sb.f_namelen : 255;
+}
static int get_tmpname(char *fnametmp, char *fname)
{
char *f;
+ int fn_max;
/* open tmp file */
if (tmpdir) {
@@ -179,7 +185,12 @@
rprintf(FERROR,"filename too long\n");...