]> arthur.barton.de Git - netatalk.git/blobdiff - bin/ad/ad_cp.c
Use lstat instead of stat in a few places
[netatalk.git] / bin / ad / ad_cp.c
index 1e4bde06290f260b488b0d26c77dfacf94ff6d0d..97b30610080ac111b85ab9a5b4139ac1069fed85 100644 (file)
@@ -535,7 +535,7 @@ static int copy(const char *path,
 
             struct adouble ad;
             struct stat st;
-            if (stat(to.p_path, &st) != 0) {
+            if (lstat(to.p_path, &st) != 0) {
                 badcp = rval = 1;
                 break;
             }
@@ -602,7 +602,7 @@ static int copy(const char *path,
 
             struct adouble ad;
             struct stat st;
-            if (stat(to.p_path, &st) != 0) {
+            if (lstat(to.p_path, &st) != 0) {
                 badcp = rval = 1;
                 break;
             }