- check for sys/select.h
[rsync/rsync.git] / flist.c
diff --git a/flist.c b/flist.c
index 80f18e4..59e451b 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -424,7 +424,10 @@ struct file_list *send_file_list(int f,int argc,char *argv[])
     p = strrchr(fname,'/');
     if (p) {
       *p = 0;
-      dir = fname;
+      if (p == fname) 
+       dir = "/";
+      else
+       dir = fname;      
       fname = p+1;      
     }
     if (!*fname)