]> arthur.barton.de Git - netatalk.git/blobdiff - bin/ad/ad_cp.c
Merge 2-1
[netatalk.git] / bin / ad / ad_cp.c
index 97b30610080ac111b85ab9a5b4139ac1069fed85..ac0a737a0b5a12cfcc3477ace70f282ba7f5a3e4 100644 (file)
@@ -387,6 +387,10 @@ static int copy(const char *path,
     if (alarmed)
         return -1;
 
+    /* This currently doesn't work with "." */
+    if (strcmp(path, ".") == 0) {
+        ERROR("\".\" not supported");
+    }
     const char *dir = strrchr(path, '/');
     if (dir == NULL)
         dir = path;