]> arthur.barton.de Git - netatalk.git/commitdiff
. not supported by now
authorFrank Lahm <franklahm@googlemail.com>
Sun, 17 Apr 2011 08:26:23 +0000 (10:26 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Sun, 17 Apr 2011 08:26:23 +0000 (10:26 +0200)
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;